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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin810
RA = 177.141, Dec = 26.4986
tmin = 449280001, tmax = 449539201
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='77073', job_status='RUN', time_executed='2021-09-04 11:31:32.520149', time_epoch_executed='1630780292.52' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='810'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77073

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77073/ft1_4FGL_J1148.5+2629_daily_bin810.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77073/ft2_4FGL_J1148.5+2629_daily_bin810.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77073/ft1_4FGL_J1148.5+2629_daily_bin810.fits outfile=/scratch/kocevski/77073/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin810.fits ra=177.141 dec=26.4986 rad=12.0 tmin=449280001.0 tmax=449539201.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 5.88
user 5.55
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77073/ft2_4FGL_J1148.5+2629_daily_bin810.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/77073/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin810.fits evtable="EVENTS" outfile="/scratch/kocevski/77073/ft1_filtered_4FGL_J1148.5+2629_daily_bin810.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.66
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77073/ft1_filtered_4FGL_J1148.5+2629_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/77073/ft2_4FGL_J1148.5+2629_daily_bin810.fits sctable="SC_DATA" expcube=/scratch/kocevski/77073/ltcube_449280001_449539201_4FGL_J1148.5+2629_daily_bin810.fits outfile=/scratch/kocevski/77073/expmap_449280001_449539201_4FGL_J1148.5+2629_daily_bin810.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/77073/ltcube_449280001_449539201_4FGL_J1148.5+2629_daily_bin810.fits
.....................!
real 192.71
user 185.16
sys 5.28

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/77073/ft1_filtered_4FGL_J1148.5+2629_daily_bin810.fits scfile=/scratch/kocevski/77073/ft2_4FGL_J1148.5+2629_daily_bin810.fits outfile=/scratch/kocevski/77073/cmap_449280001_449539201_4FGL_J1148.5+2629_daily_bin810.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77073/ft1_filtered_4FGL_J1148.5+2629_daily_bin810.fits scfile=/scratch/kocevski/77073/ft2_4FGL_J1148.5+2629_daily_bin810.fits outfile=/scratch/kocevski/77073/cmap_HighResolution_449280001_449539201_4FGL_J1148.5+2629_daily_bin810.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/77073/ft1_filtered_4FGL_J1148.5+2629_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/77073/ft2_4FGL_J1148.5+2629_daily_bin810.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77073/Model_4FGL_J1148.5+2629_daily_bin810.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/77073/ft1_filtered_4FGL_J1148.5+2629_daily_bin810.fits.....................!
real 46.50
user 45.06
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4505       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .42945E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .74820       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.180       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4254       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.1167       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2192       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12191E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.1536       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3189       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .95574       1.0000         .10000E-03   10000.    
    27 'norm      '    24.679       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.7701       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3475       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .56337       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=   4741.663     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3365 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4444        13.700        .57221E-06    .85365E-04
   2  Prefactor     .34491E-03    2.0475       -.56469E-06** at limit **
   3  norm          .73648        10.590       -.17362E-05   -.38983E-04
   4  Prefactor     .10000E-03    1.9030       -.64018E-07** at limit **
   5  norm          .10000E-03    18.522       -.13779E-04** at limit **
   6  Prefactor     11.180        10.970       -.98671E-06   -.85895E-03
   7  Prefactor     1.4246        2.3788       -.24765E-06   -.43600E-03
   8  Prefactor     .10000E-03    45.168       -.71063E-06** at limit **
   9  Prefactor     .10000E-03    32.403        .21506E-04** at limit **
  10  Prefactor     .10000E-03    9.3151       -.18166E-05** at limit **
  11  Prefactor     .10000E-03    3.4112       -.35744E-06** at limit **
  12  Prefactor     .10000E-03    15.474       -.18081E-05** at limit **
  13  Prefactor     .10000E-03    5.1310        .31439E-05** at limit **
  14  Prefactor     .10000E-03    1.0825        .38744E-07** at limit **
  15  Prefactor     .10000E-03    13.481        .10351E-04** at limit **
  16  norm          4.1166        1.8012       -.37241E-07    .46141E-04
  17  Prefactor     .10000E-03    2.1993       -.36318E-07** at limit **
  18  Prefactor     .10000E-03    47.912       -.15636E-04** at limit **
  19  Prefactor     2.2206        2.6510        .64192E-07    .37890E-03
  20  Prefactor     .10001E-03    2.5372       -.15802E-05** at limit **
  21  norm          6.1535        4.2068        .54877E-07    .63501E-04
  22  Prefactor     .10000E-03    9.3915       -.10783E-05** at limit **
  23  Prefactor     .10000E-03    1.5049       -.33984E-07** at limit **
  24  Prefactor     1.3183        3.1175       -.54287E-06   -.69115E-03
  25  Prefactor     .10000E-03    3.6832        .52000E-06** at limit **
  26  norm          .95580        .34008        .19231E-07    .88494E-03
  27  norm          24.680        8.5601       -.21086E-07    .39681E-04
  28  Prefactor     9.7710        16.731        .51816E-07   -.94763E-05
  29  Normalizat    1.3474        .20577        .60289E-06    .38621E-03
  30  Prefactor     .56346        .20880        .11219E-06    .20246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.44435
  Prefactor  = 0.000344908
  norm       = 0.736476
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.1801
  Prefactor  = 1.42459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.11661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.22056
  Prefactor  = 0.000100005
  norm       = 6.15347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.31829
  Prefactor  = 0.0001
  norm       = 0.955795
  norm       = 24.6795
  Prefactor  = 9.771
  Normalizat = 1.3474
  Prefactor  = 0.563461
 **********
 **   18 **HESSE 
 **********

 FCN=   4741.663     FROM HESSE     STATUS=OK           592 CALLS     3957 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4444        14.149        .17211E-03   -1.5241    
   2  Prefactor     .34491E-03    8.0777        .29957E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .73648        38.892        .43425E-02   -1.5536    
   4  Prefactor     .10000E-03    1.9036        .92765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    18.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.180        11.132        .59909E-03   -1.5039    
   7  Prefactor     1.4246        2.3492        .13217E-03   -1.5469    
   8  Prefactor     .10000E-03    45.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4450        .12413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1373        .15223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1086        .13978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.1166        1.8040        .57881E-04   -1.5302    
  17  Prefactor     .10000E-03    2.2342        .99660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2206        2.6060        .11611E-03   -1.5410    
  20  Prefactor     .10001E-03    4.8706        .20811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.1535        4.1778        .10811E-03   -1.5212    
  22  Prefactor     .10000E-03    9.4486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.5115        .82306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.3183        3.0317        .16263E-03   -1.5478    
  25  Prefactor     .10000E-03    3.6946        .12900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .95580        .34049        .22941E-04   -1.5512    
  27  norm          24.680        8.5525        .80635E-04   -1.4714    
  28  Prefactor     9.7710        16.496        .12820E-03   -1.5083    
  29  Normalizat    1.3474        .24162        .22181E-03   -.82162    
  30  Prefactor     .56346        .24044        .34242E-03   -1.0915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97341e-08
Minuit parameter uncertainties:
  1  14.1577
  2  0.0889682
  3  10.7105
  4  9.29043e-07
  5  6.29371e-05
  6  11.1346
  7  2.3494
  8  2.52559e-05
  9  0.000238875
  10  3.4892e-05
  11  1.44008e-06
  12  5.74475e-07
  13  2.28832e-06
  14  6.62608e-07
  15  4.41579e-06
  16  1.80399
  17  6.97612e-07
  18  1.04489e-05
  19  2.60612
  20  0.000323681
  21  4.17797
  22  6.77029e-07
  23  1.7218e-06
  24  3.03203
  25  4.36657e-07
  26  0.340491
  27  8.55293
  28  16.5039
  29  0.241819
  30  0.240882
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  5.745e-07  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:  5.635e-01  2.409e-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.347e+00  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/77073/likelihoodResults_449280001_449539201_4FGL_J1148.5+2629_daily_bin810.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): 102
logL (Free Index) = 4741.66298402
delta logL = -0.000306415878185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4741.6626779
delta logL = -2.89341187454e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9399       1.0000          .0000       10.000    
     3 'Normalizat'    1.3473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56362       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=   4741.663     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6365.4        .90712E-02** at limit **
   2  Index         2.9563        6.4493        .50000       -.10137E-04
   3  Normalizat    1.3474        .10467        .50174E-01    .29831E-04
   4  Prefactor     .56346        .10799        .77321E-01    .37677E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.95631
  Normalizat = 1.34739
  Prefactor  = 0.563462
 **********
 **   18 **HESSE 
 **********

 FCN=   4741.663     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9563        6.4695        .50000       -.42107    
   3  Normalizat    1.3474        .22705        .22181E-03   -.82162    
   4  Prefactor     .56346        .23663        .34242E-03   -1.0915    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04732e-10
Minuit parameter uncertainties:
  1  8.96658e-05
  2  4.86732
  3  0.227217
  4  0.237044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77073': 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) = 4741.66267754
delta logL = 7.12270775693e-08

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  8.967e-05  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.956e+00  4.867e+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:  5.635e-01  2.370e-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.347e+00  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.141 26.499

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/77073/cmap_HighResolution_449280001_449539201_4FGL_J1148.5+2629_daily_bin810.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-04 11:43:44.331295', job_id='77073', GAL2='0.56', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630781024.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='7.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='810' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:43:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 77073: <4FGL_J1148.5+2629_daily_bin810> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin810> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 11:31:13 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:31:15 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:31:15 2021
Terminated at Sat Sep  4 11:43:45 2021
Results reported at Sat Sep  4 11:43:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin810 177.141 26.4986 449280001 449539201 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 :                                   727.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            752 sec.

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

