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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin1084
RA = 177.141, Dec = 26.4986
tmin = 520300801, tmax = 520560001
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='79468', job_status='RUN', time_executed='2021-09-04 11:38:21.529346', time_epoch_executed='1630780701.53' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79468

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79468/ft1_4FGL_J1148.5+2629_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79468/ft2_4FGL_J1148.5+2629_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79468/ft1_4FGL_J1148.5+2629_daily_bin1084.fits outfile=/scratch/kocevski/79468/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1084.fits ra=177.141 dec=26.4986 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.04
user 5.80
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/79468/ft2_4FGL_J1148.5+2629_daily_bin1084.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/79468/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/79468/ft1_filtered_4FGL_J1148.5+2629_daily_bin1084.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/79468/ft1_filtered_4FGL_J1148.5+2629_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/79468/ft2_4FGL_J1148.5+2629_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/79468/ltcube_520300801_520560001_4FGL_J1148.5+2629_daily_bin1084.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/79468/ft2_4FGL_J1148.5+2629_daily_bin1084.fits
.....................!
real 11.98
user 11.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79468/ft1_filtered_4FGL_J1148.5+2629_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/79468/ft2_4FGL_J1148.5+2629_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/79468/ltcube_520300801_520560001_4FGL_J1148.5+2629_daily_bin1084.fits outfile=/scratch/kocevski/79468/expmap_520300801_520560001_4FGL_J1148.5+2629_daily_bin1084.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/79468/ltcube_520300801_520560001_4FGL_J1148.5+2629_daily_bin1084.fits
.....................!
real 189.91
user 185.17
sys 4.41

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/79468/ft1_filtered_4FGL_J1148.5+2629_daily_bin1084.fits scfile=/scratch/kocevski/79468/ft2_4FGL_J1148.5+2629_daily_bin1084.fits outfile=/scratch/kocevski/79468/cmap_520300801_520560001_4FGL_J1148.5+2629_daily_bin1084.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.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8196       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7774       1.0000         .10000E-03   10000.    
     5 'norm      '    9.1668       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .65448E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1919       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .49182       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7944       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4132       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2416       1.0000         .10000E-03   10000.    
    16 'norm      '    6.2288       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0611       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15673E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.8603       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.901       1.0000         .10000E-03   10000.    
    26 'norm      '    .10408       1.0000         .10000E-03   10000.    
    27 'norm      '    5.7526       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0522       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71832       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=   3855.618     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     3422 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5420        .10589E-05** at limit **
   2  Prefactor     1.8195        2.2672        .10807E-06    .14424E-03
   3  norm          1.4497        14.242        .25168E-05    .48960E-03
   4  Prefactor     4.7681        7.7525        .38459E-07    .23778E-03
   5  norm          9.1626        10.755        .84013E-07    .82983E-04
   6  Prefactor     .10000E-03    12.975       -.64668E-06** at limit **
   7  Prefactor     1.1909        2.7920       -.10950E-05   -.14585E-03
   8  Prefactor     .10000E-03    46.567       -.63891E-05** at limit **
   9  Prefactor     .33623        42.476       -.65118E-05    .39207E-03
  10  Prefactor     .10000E-03    9.7614        .46574E-06** at limit **
  11  Prefactor     .10000E-03    8.9753        .43550E-06** at limit **
  12  Prefactor     3.7932        16.006        .32604E-06    .12414E-03
  13  Prefactor     .10000E-03    3.3677        .57532E-07** at limit **
  14  Prefactor     2.4127        1.9945       -.36611E-07    .73903E-04
  15  Prefactor     5.2578        27.258        .60424E-07    .22749E-04
  16  norm          6.2284        1.9427        .32448E-07    .35835E-03
  17  Prefactor     .10000E-03    2.0049        .34950E-07** at limit **
  18  Prefactor     .10000E-03    34.463        .28500E-05** at limit **
  19  Prefactor     4.0618        3.2870       -.15211E-06    .55099E-04
  20  Prefactor     .10000E-03    3.5103        .67694E-06** at limit **
  21  norm          6.8591        4.0422        .68912E-07    .22280E-03
  22  Prefactor     .10000E-03    3.7370       -.57762E-07** at limit **
  23  Prefactor     .10000E-03    2.3691       -.38013E-06** at limit **
  24  Prefactor     .10000E-03    1.5874       -.34222E-07** at limit **
  25  Prefactor     10.899        9.4326       -.68792E-08    .53589E-04
  26  norm          .10411        .16582       -.98309E-08    .38377E-05
  27  norm          5.7541        8.3244        .44902E-07    .32438E-03
  28  Prefactor     .10000E-03    6.8120       -.12787E-05** at limit **
  29  Normalizat    1.0523        .20411        .69727E-06    .25180E-03
  30  Prefactor     .71832        .20980        .10975E-06    .18666E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.81949
  norm       = 1.44974
  Prefactor  = 4.76811
  norm       = 9.16262
  Prefactor  = 0.000100003
  Prefactor  = 1.19089
  Prefactor  = 0.000100002
  Prefactor  = 0.336226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.79324
  Prefactor  = 0.0001
  Prefactor  = 2.41275
  Prefactor  = 5.25779
  norm       = 6.22843
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.06183
  Prefactor  = 0.000100002
  norm       = 6.85908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8987
  norm       = 0.104107
  norm       = 5.75408
  Prefactor  = 0.0001
  Normalizat = 1.05231
  Prefactor  = 0.718317
 **********
 **   18 **HESSE 
 **********

 FCN=   3855.618     FROM HESSE     STATUS=OK           596 CALLS     4018 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5856        .15490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8195        2.2509        .10023E-03   -1.5438    
   3  norm          1.4497        17.908        .17924E-02   -1.5467    
   4  Prefactor     4.7681        7.6462        .92037E-03   -1.5271    
   5  norm          9.1626        10.762        .13237E-03   -1.5102    
   6  Prefactor     .10000E-03    47.759        .41082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1909        2.7805        .14977E-03   -1.5490    
   8  Prefactor     .10000E-03    46.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33623        137.72        .39109E-02   -1.5592    
  10  Prefactor     .10000E-03    9.7911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.3167        .36205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.7932        16.118        .10361E-02   -1.5318    
  13  Prefactor     .10000E-03    3.3727        .11128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.4127        1.9845        .75809E-04   -1.5397    
  15  Prefactor     5.2578        27.228        .17557E-03   -1.5249    
  16  norm          6.2284        1.9430        .45823E-04   -1.5209    
  17  Prefactor     .10000E-03    2.0283        .85807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0618        3.1368        .92702E-04   -1.5305    
  20  Prefactor     .10000E-03    11.511        .19233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.8591        3.9500        .90237E-04   -1.5184    
  22  Prefactor     .10000E-03    3.7469        .11724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.4392        .18617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.781        .14680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.899        9.4146        .12134E-03   -1.5048    
  26  norm          .10411        .14764        .30815E-03   -1.5643    
  27  norm          5.7541        8.3500        .83731E-03   -1.5228    
  28  Prefactor     .10000E-03    6.8574        .15852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0523        .23083        .21652E-03   -.91298    
  30  Prefactor     .71832        .23931        .28584E-03   -1.0281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16127e-08
Minuit parameter uncertainties:
  1  4.18785e-05
  2  2.25104
  3  10.1941
  4  7.6478
  5  10.7641
  6  0.000692151
  7  2.78076
  8  0.000646226
  9  13.6393
  10  4.38803e-05
  11  9.9846e-05
  12  15.6452
  13  7.60758e-07
  14  1.98453
  15  23.9468
  16  1.94301
  17  2.6764e-08
  18  0.000284512
  19  3.13688
  20  0.00031653
  21  3.95018
  22  3.83901e-06
  23  1.24789e-05
  24  3.21993e-05
  25  9.41585
  26  0.147644
  27  8.35172
  28  6.21964e-05
  29  0.231046
  30  0.239656
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  3.793e+00  1.565e+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:  7.183e-01  2.397e-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.052e+00  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/79468/likelihoodResults_520300801_520560001_4FGL_J1148.5+2629_daily_bin1084.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) = 3855.60916661
delta logL = 0.0084232932727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3855.60854028
delta logL = 0.00904962471895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1320       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5479       1.0000          .0000       10.000    
     3 'Normalizat'    1.0549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71601       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=   3855.609     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      300 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1268        15.316        .19830E-03   -.14333E-06
   2  Index         2.5479        2.3905        .14611E-01   -.19794E-05
   3  Normalizat    1.0548        .21495        .21630E-03   -.66908E-04
   4  Prefactor     .71613        .23808        .28622E-03    .43017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.12679
  Index      = 2.54793
  Normalizat = 1.05478
  Prefactor  = 0.716132
 **********
 **   18 **HESSE 
 **********

 FCN=   3855.609     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1268        15.415        .79320E-05   -1.5302    
   2  Index         2.5479        2.4054        .58445E-03   -.51257    
   3  Normalizat    1.0548        .21516        .86520E-05   -.91217    
   4  Prefactor     .71613        .23825        .11449E-04   -1.0290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97108e-11
Minuit parameter uncertainties:
  1  15.4299
  2  2.54823
  3  0.215342
  4  0.238589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79468': 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) = 3855.60854009
delta logL = 0.00904981145823

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  4.127e+00  1.543e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.548e+00  2.548e+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:  7.161e-01  2.386e-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.055e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/79468/cmap_HighResolution_520300801_520560001_4FGL_J1148.5+2629_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-04 11:49:38.651601', job_id='79468', GAL2='0.72', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630781378.65', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='9.05e-03', ts2='0.09', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='1084' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:49:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 79468: <4FGL_J1148.5+2629_daily_bin1084> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin1084> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 11:36:17 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:36:19 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:19 2021
Terminated at Sat Sep  4 11:49:39 2021
Results reported at Sat Sep  4 11:49:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin1084 177.141 26.4986 520300801 520560001 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 :                                   675.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            802 sec.

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

