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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin93
RA = 177.141, Dec = 26.4986
tmin = 263433601, tmax = 263692801
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='71208', job_status='RUN', time_executed='2021-09-04 11:19:14.525475', time_epoch_executed='1630779554.53' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71208

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71208/ft1_4FGL_J1148.5+2629_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71208/ft2_4FGL_J1148.5+2629_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71208/ft1_4FGL_J1148.5+2629_daily_bin93.fits outfile=/scratch/kocevski/71208/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin93.fits ra=177.141 dec=26.4986 rad=12.0 tmin=263433601.0 tmax=263692801.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.45
user 3.19
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71208/ft1_filtered_4FGL_J1148.5+2629_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/71208/ft2_4FGL_J1148.5+2629_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/71208/ltcube_263433601_263692801_4FGL_J1148.5+2629_daily_bin93.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/71208/ft2_4FGL_J1148.5+2629_daily_bin93.fits
.....................!
real 12.77
user 12.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71208/ft1_filtered_4FGL_J1148.5+2629_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/71208/ft2_4FGL_J1148.5+2629_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/71208/ltcube_263433601_263692801_4FGL_J1148.5+2629_daily_bin93.fits outfile=/scratch/kocevski/71208/expmap_263433601_263692801_4FGL_J1148.5+2629_daily_bin93.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/71208/ltcube_263433601_263692801_4FGL_J1148.5+2629_daily_bin93.fits
.....................!
real 192.23
user 186.76
sys 5.11

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/71208/ft1_filtered_4FGL_J1148.5+2629_daily_bin93.fits scfile=/scratch/kocevski/71208/ft2_4FGL_J1148.5+2629_daily_bin93.fits outfile=/scratch/kocevski/71208/cmap_263433601_263692801_4FGL_J1148.5+2629_daily_bin93.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.377       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30488       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1928       1.0000         .10000E-03   10000.    
     5 'norm      '    20.191       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.338       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3793       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.640       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0930       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19477E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3655       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7261       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.997       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8472       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4222       1.0000         .10000E-03   10000.    
    21 'norm      '    .10994E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5829       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.027       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .23656       1.0000         .10000E-03   10000.    
    27 'norm      '    3.8159       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0997       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .81605       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=   5008.325     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3926 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.373        10.613       -.25170E-05   -.93657E-04
   2  Prefactor     .31516        2.1416        .56047E-06   -.36530E-03
   3  norm          .10000E-03    8.1468       -.29509E-05** at limit **
   4  Prefactor     2.1923        2.3008        .27162E-06   -.79877E-03
   5  norm          20.194        14.525        .14468E-06   -.40578E-04
   6  Prefactor     14.339        11.351        .40515E-06   -.10520E-05
   7  Prefactor     1.3803        2.3613       -.92024E-07   -.67977E-04
   8  Prefactor     .10000E-03    44.261        .13850E-05** at limit **
   9  Prefactor     .10000E-03    9.2210        .32834E-05** at limit **
  10  Prefactor     .10000E-03    4.4934       -.13545E-05** at limit **
  11  Prefactor     .10000E-03    2.0920        .33021E-07** at limit **
  12  Prefactor     12.643        17.049       -.38240E-06    .98970E-07
  13  Prefactor     .10000E-03    5.9451        .93838E-06** at limit **
  14  Prefactor     1.0931        1.1350        .24999E-07    .57403E-04
  15  Prefactor     .10000E-03    85.401       -.16860E-05** at limit **
  16  norm          3.3657        1.4972        .28760E-07    .53197E-04
  17  Prefactor     1.7271        4.0163       -.13939E-05   -.92069E-04
  18  Prefactor     16.992        30.053       -.20261E-05   -.20693E-05
  19  Prefactor     1.8470        3.2952       -.15105E-06    .33801E-05
  20  Prefactor     4.4224        3.8142        .51383E-06    .47782E-04
  21  norm          .10000E-03    3.0025        .25748E-07** at limit **
  22  Prefactor     .10000E-03    4.0851        .15418E-05** at limit **
  23  Prefactor     4.5808        3.0065        .52027E-06    .24784E-04
  24  Prefactor     10.028        3.5493       -.75337E-06    .27573E-04
  25  Prefactor     .10000E-03    3.7453       -.56172E-06** at limit **
  26  norm          .23658        .19266       -.14755E-08    .21384E-03
  27  norm          3.8170        4.5657       -.23340E-06    .29430E-04
  28  Prefactor     .10000E-03    11.570       -.91047E-06** at limit **
  29  Normalizat    1.0994        .20790        .86008E-06   -.76772E-04
  30  Prefactor     .81636        .21539       -.44954E-07   -.86590E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3732
  Prefactor  = 0.315159
  norm       = 0.0001
  Prefactor  = 2.19226
  norm       = 20.1941
  Prefactor  = 14.3394
  Prefactor  = 1.38026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6433
  Prefactor  = 0.0001
  Prefactor  = 1.0931
  Prefactor  = 0.0001
  norm       = 3.36574
  Prefactor  = 1.72707
  Prefactor  = 16.9921
  Prefactor  = 1.84703
  Prefactor  = 4.42237
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.58083
  Prefactor  = 10.0275
  Prefactor  = 0.0001
  norm       = 0.236578
  norm       = 3.81699
  Prefactor  = 0.0001
  Normalizat = 1.09937
  Prefactor  = 0.81636
 **********
 **   18 **HESSE 
 **********

 FCN=   5008.325     FROM HESSE     STATUS=OK           594 CALLS     4520 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.373        10.704        .12438E-03   -1.5064    
   2  Prefactor     .31516        8.7070        .18755E-02   -1.5596    
   3  norm          .10000E-03    8.1801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.1923        7.6538        .13895E-02   -1.5412    
   5  norm          20.194        14.555        .89137E-04   -1.4809    
   6  Prefactor     14.339        11.557        .10578E-03   -1.4950    
   7  Prefactor     1.3803        2.3383        .13648E-03   -1.5473    
   8  Prefactor     .10000E-03    44.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5061        .14655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.1075        .99928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.643        17.076        .11267E-03   -1.4997    
  13  Prefactor     .10000E-03    5.9790        .16854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0931        1.1471        .73959E-04   -1.5499    
  15  Prefactor     .10000E-03    87.243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3657        1.4988        .54747E-04   -1.5341    
  17  Prefactor     1.7271        3.9689        .19898E-03   -1.5445    
  18  Prefactor     16.992        30.145        .97148E-04   -1.4883    
  19  Prefactor     1.8470        3.2242        .14824E-03   -1.5436    
  20  Prefactor     4.4224        3.7769        .11573E-03   -1.5287    
  21  norm          .10000E-03    3.0934        .23800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1074        .13963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5808        2.9925        .93696E-04   -1.5280    
  24  Prefactor     10.028        3.5428        .73335E-04   -1.5075    
  25  Prefactor     .10000E-03    3.7631        .13346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .23658        .19421        .26858E-04   -1.5611    
  27  norm          3.8170        4.5496        .15800E-03   -1.5317    
  28  Prefactor     .10000E-03    11.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0994        .24304        .23438E-03   -.89772    
  30  Prefactor     .81636        .25063        .29766E-03   -.99128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93424e-09
Minuit parameter uncertainties:
  1  10.7057
  2  3.31306
  3  5.38855e-06
  4  7.65721
  5  14.5577
  6  11.5586
  7  2.33844
  8  3.16451e-06
  9  2.72601e-06
  10  4.42011e-06
  11  1.0298e-06
  12  17.0822
  13  7.5274e-06
  14  1.14714
  15  0.000123956
  16  1.4988
  17  3.96952
  18  30.1715
  19  3.22446
  20  3.77714
  21  6.43021e-08
  22  4.55168e-07
  23  2.99258
  24  3.54288
  25  9.01355e-06
  26  0.194206
  27  4.54998
  28  4.02749e-05
  29  0.243287
  30  0.250978
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.264e+01  1.708e+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:  8.164e-01  2.510e-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.099e+00  2.433e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 177.141 26.499
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71208/likelihoodResults_263433601_263692801_4FGL_J1148.5+2629_daily_bin93.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) = 5008.12730171
delta logL = 0.197198708674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5008.12429259
delta logL = 0.200207833233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3184       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8348       1.0000          .0000       10.000    
     3 'Normalizat'    1.0802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83164       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.

 FCN=   5008.124     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      253 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3104        504.99        .34750E-02    .15127E-03
   2  Index         3.8336        5.8746        .20741E-01    .34026E-04
   3  Normalizat    1.0804        .19268        .38867E-01    .26592E-03
   4  Prefactor     .83156        .21469        .66732E-01    .22393E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.31044
  Index      = 3.83357
  Normalizat = 1.08035
  Prefactor  = 0.831563
 **********
 **   18 **HESSE 
 **********

 FCN=   5008.124     FROM HESSE     STATUS=OK            29 CALLS      282 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3104        14.962        .13900E-03   -1.5131    
   2  Index         3.8336        1.6505        .82964E-03   -.23545    
   3  Normalizat    1.0804        .22835        .23611E-03   -.90385    
   4  Prefactor     .83156        .25046        .29521E-03   -.98575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44964e-11
Minuit parameter uncertainties:
  1  14.9683
  2  1.68396
  3  0.228563
  4  0.2508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71208': 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) = 5008.12429075
delta logL = 0.20020966518

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  8.310e+00  1.497e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  3.834e+00  1.684e+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:  8.316e-01  2.508e-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.080e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 177.141 26.499
Photon Index (Free Index): 3.83 +/- 1.68
Photon Flux (Free Index): 4.37e-08 +/- 4.82e-08
Energy Flux (Free Index): 6.74e-06 +/- 7.43e-06

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/71208/cmap_HighResolution_263433601_263692801_4FGL_J1148.5+2629_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.82e-03', comment='SUCCESS', energy_flux2='6.74e-06', dlogl='2.00e-01', photon_flux2='4.37e-08', job_status='DONE', time_completed='2021-09-04 11:32:38.716103', photon_index_error2='1.68', photon_index2='3.83', ts='0.75', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='7.43e-06', EG='1.10', time_epoch_completed='1630780358.72', return_code='0', job_id='71208', GAL2='0.83', EG2='1.08', return_code2='0', photon_flux_error2='4.82e-08', ts2='1.17', photon_index='2.92' WHERE bin_id='93' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:32:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 71208: <4FGL_J1148.5+2629_daily_bin93> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin93 177.141 26.4986 263433601 263692801 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 :                                   802.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

