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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin1304
RA = 177.141, Dec = 26.4986
tmin = 577324801, tmax = 577584001
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='81123', job_status='RUN', time_executed='2021-09-04 11:41:41.557160', time_epoch_executed='1630780901.56' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='1304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81123

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81123/ft1_4FGL_J1148.5+2629_daily_bin1304.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81123/ft2_4FGL_J1148.5+2629_daily_bin1304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81123/ft1_4FGL_J1148.5+2629_daily_bin1304.fits outfile=/scratch/kocevski/81123/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1304.fits ra=177.141 dec=26.4986 rad=12.0 tmin=577324801.0 tmax=577584001.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.05
user 2.84
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81123/ft1_filtered_4FGL_J1148.5+2629_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/81123/ft2_4FGL_J1148.5+2629_daily_bin1304.fits sctable="SC_DATA" expcube=/scratch/kocevski/81123/ltcube_577324801_577584001_4FGL_J1148.5+2629_daily_bin1304.fits outfile=/scratch/kocevski/81123/expmap_577324801_577584001_4FGL_J1148.5+2629_daily_bin1304.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/81123/ltcube_577324801_577584001_4FGL_J1148.5+2629_daily_bin1304.fits
.....................!
real 190.06
user 185.46
sys 4.16

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/81123/ft1_filtered_4FGL_J1148.5+2629_daily_bin1304.fits scfile=/scratch/kocevski/81123/ft2_4FGL_J1148.5+2629_daily_bin1304.fits outfile=/scratch/kocevski/81123/cmap_577324801_577584001_4FGL_J1148.5+2629_daily_bin1304.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81123/ft1_filtered_4FGL_J1148.5+2629_daily_bin1304.fits scfile=/scratch/kocevski/81123/ft2_4FGL_J1148.5+2629_daily_bin1304.fits outfile=/scratch/kocevski/81123/cmap_HighResolution_577324801_577584001_4FGL_J1148.5+2629_daily_bin1304.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    7.9310       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1174       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7589       1.0000         .10000E-03   10000.    
     5 'norm      '    .96964       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9043       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.248       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.128       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9163       1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.552       1.0000         .10000E-03   10000.    
    16 'norm      '    .20941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6485       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.524       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8915       1.0000         .10000E-03   10000.    
    21 'norm      '    6.7626       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9696       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.9968       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .46304       1.0000         .10000E-03   10000.    
    27 'norm      '    14.933       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11005E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0103       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .89142       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7070.058     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3919 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4237         .0000    ** at limit **
   2  Prefactor     7.9313        3.1477         .0000        .12739E-02
   3  norm          3.1174        9.4443         .0000        .48142E-02
   4  Prefactor     1.7586        4.6054         .0000        .70681E-03
   5  norm          .96808        12.109         .0000        .31592E-01
   6  Prefactor     .10000E-03    4.7372         .0000    ** at limit **
   7  Prefactor     1.9036        1.5398         .0000       -.59642E-03
   8  Prefactor     .10001E-03    54.521         .0000    ** at limit **
   9  Prefactor     13.250        11.956         .0000        .54793E-03
  10  Prefactor     .10000E-03    4.2044         .0000    ** at limit **
  11  Prefactor     .10000E-03    1.3040         .0000    ** at limit **
  12  Prefactor     23.129        19.696         .0000       -.88389E-04
  13  Prefactor     .10000E-03    10.279         .0000    ** at limit **
  14  Prefactor     1.9164        1.7714         .0000        .38080E-03
  15  Prefactor     38.554        25.011         .0000       -.12488E-02
  16  norm          .21045        .70410         .0000        .25798E-02
  17  Prefactor     5.6493        5.6381         .0000        .59789E-03
  18  Prefactor     15.526        18.207         .0000       -.57681E-04
  19  Prefactor     .10000E-03    2.6612         .0000    ** at limit **
  20  Prefactor     2.8912        3.9860         .0000        .26329E-03
  21  norm          6.7628        3.1255         .0000        .22863E-03
  22  Prefactor     .10000E-03    2.5514         .0000    ** at limit **
  23  Prefactor     1.9696        1.8449         .0000        .38734E-04
  24  Prefactor     5.9976        2.8306         .0000        .31866E-03
  25  Prefactor     .10000E-03    2.2561         .0000    ** at limit **
  26  norm          .46304        .33141         .0000        .33959E-03
  27  norm          14.934        6.2032         .0000        .92023E-04
  28  Prefactor     .10000E-03    13.278         .0000    ** at limit **
  29  Normalizat    1.0101        .18032         .0000        .33403E-04
  30  Prefactor     .89160        .18264         .0000        .10234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.93127
  norm       = 3.11742
  Prefactor  = 1.75864
  norm       = 0.968083
  Prefactor  = 0.0001
  Prefactor  = 1.90362
  Prefactor  = 0.000100007
  Prefactor  = 13.2498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1289
  Prefactor  = 0.0001
  Prefactor  = 1.91644
  Prefactor  = 38.5544
  norm       = 0.210451
  Prefactor  = 5.64934
  Prefactor  = 15.5257
  Prefactor  = 0.0001
  Prefactor  = 2.89125
  norm       = 6.76278
  Prefactor  = 0.0001
  Prefactor  = 1.96963
  Prefactor  = 5.99756
  Prefactor  = 0.0001
  norm       = 0.46304
  norm       = 14.934
  Prefactor  = 0.0001
  Normalizat = 1.01009
  Prefactor  = 0.891598
 **********
 **   18 **HESSE 
 **********

 FCN=   7070.058     FROM HESSE     STATUS=OK           596 CALLS     4515 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4261        .15191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.9313        3.1516        .89148E-04   -1.5145    
   3  norm          3.1174        9.4254        .11482E-02   -1.5355    
   4  Prefactor     1.7586        4.5654        .28275E-03   -1.5443    
   5  norm          .96808        12.335        .26116E-02   -1.5511    
   6  Prefactor     .10000E-03    4.7517        .17871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9036        1.5413        .90212E-04   -1.5432    
   8  Prefactor     .10001E-03    55.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.250        11.972        .11005E-03   -1.4980    
  10  Prefactor     .10000E-03    4.2150        .16831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.3178        .93723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.129        19.611        .83290E-04   -1.4746    
  13  Prefactor     .10000E-03    10.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9164        1.7592        .10010E-03   -1.5431    
  15  Prefactor     38.554        25.060        .64552E-04   -1.4465    
  16  norm          .21045        .85880        .11952E-02   -1.5616    
  17  Prefactor     5.6493        5.6159        .16902E-03   -1.5233    
  18  Prefactor     15.526        18.207        .10165E-03   -1.4920    
  19  Prefactor     .10000E-03    2.7064        .13353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.8912        3.9680        .18987E-03   -1.5368    
  21  norm          6.7628        3.1190        .91593E-04   -1.5188    
  22  Prefactor     .10000E-03    2.5735        .13115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.9696        1.8475        .10193E-03   -1.5427    
  24  Prefactor     5.9976        2.8245        .90089E-04   -1.5218    
  25  Prefactor     .10000E-03    2.2609        .12330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .46304        .32020        .38506E-03   -1.5572    
  27  norm          14.934        6.1938        .10365E-03   -1.4935    
  28  Prefactor     .10000E-03    13.896        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0101        .21032        .25645E-03   -.92693    
  30  Prefactor     .89160        .21315        .29520E-03   -.96435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05837e-08
Minuit parameter uncertainties:
  1  9.2543e-06
  2  3.15165
  3  9.42984
  4  4.56626
  5  6.9126
  6  5.3272e-05
  7  1.54136
  8  0.00128687
  9  11.9739
  10  3.36283e-05
  11  1.02855e-05
  12  19.6169
  13  0.000132035
  14  1.75929
  15  25.0664
  16  0.850078
  17  5.61647
  18  18.2137
  19  6.13951e-06
  20  3.96833
  21  3.11904
  22  2.42609e-05
  23  1.84756
  24  2.82452
  25  1.54427e-05
  26  0.3202
  27  6.19404
  28  0.000119113
  29  0.210491
  30  0.213354
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  2.313e+01  1.962e+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.916e-01  2.134e-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.010e+00  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.28
Ra Dec: 177.141 26.499
Photon Index (Fixed Index): 2.92 +/- 0.00
Photon Flux (Fixed Index): 5.45e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 9.60e-06

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

Saving results to:
/scratch/kocevski/81123/likelihoodResults_577324801_577584001_4FGL_J1148.5+2629_daily_bin1304.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) = 7069.971407
delta logL = 0.0868068848886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7069.96802902
delta logL = 0.0901848712338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.400       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6165       1.0000          .0000       10.000    
     3 'Normalizat'    1.0214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88237       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=   7069.968     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      233 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 77.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.399        17.702       -.26279E-05    .91964E-03
   2  Index         2.6166        .53443        .75655E-05    .33397E-03
   3  Normalizat    1.0214        .16774       -.32555E-07   -.11283E-03
   4  Prefactor     .88239        .18185        .29855E-06   -.65761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.3986
  Index      = 2.61662
  Normalizat = 1.0214
  Prefactor  = 0.882387
 **********
 **   18 **HESSE 
 **********

 FCN=   7069.968     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.399        20.288        .81094E-04   -1.4720    
   2  Index         2.6166        .69164        .10870E-01   -.49687    
   3  Normalizat    1.0214        .19631        .25516E-03   -.92317    
   4  Prefactor     .88239        .21107        .29652E-03   -.96759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49352e-09
Minuit parameter uncertainties:
  1  20.2939
  2  0.694523
  3  0.196451
  4  0.211264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81123': 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) = 7069.968029
delta logL = 0.0901848847825

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  2.440e+01  2.029e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.617e+00  6.945e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  8.824e-01  2.113e-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.021e+00  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.43
Ra Dec: 177.141 26.499
Photon Index (Free Index): 2.62 +/- 0.69
Photon Flux (Free Index): 4.59e-08 +/- 4.47e-08
Energy Flux (Free Index): 1.18e-05 +/- 9.93e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/81123/cmap_HighResolution_577324801_577584001_4FGL_J1148.5+2629_daily_bin1304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='5.45e-08', energy_flux2='1.18e-05', photon_flux_error='4.62e-08', dlogl='9.02e-02', energy_flux='1.13e-05', photon_flux2='4.59e-08', job_status='DONE', time_completed='2021-09-04 11:57:39.384535', photon_index_error2='0.69', photon_index2='2.62', ts='2.28', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='9.93e-06', EG='1.01', time_epoch_completed='1630781859.38', return_code='0', job_id='81123', GAL2='0.88', EG2='1.02', return_code2='0', energy_flux_error='9.60e-06', photon_flux_error2='4.47e-08', ts2='2.43', photon_index='2.92' WHERE bin_id='1304' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:57:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 81123: <4FGL_J1148.5+2629_daily_bin1304> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin1304 177.141 26.4986 577324801 577584001 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 :                                   949.01 sec.
    Max Memory :                                 1075 MB
    Average Memory :                             314.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            969 sec.

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

