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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin914
RA = 177.141, Dec = 26.4986
tmin = 476236801, tmax = 476496001
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='77270', job_status='RUN', time_executed='2021-09-04 11:31:39.664831', time_epoch_executed='1630780299.66' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='914'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77270

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77270/ft1_4FGL_J1148.5+2629_daily_bin914.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77270/ft2_4FGL_J1148.5+2629_daily_bin914.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77270/ft1_4FGL_J1148.5+2629_daily_bin914.fits outfile=/scratch/kocevski/77270/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin914.fits ra=177.141 dec=26.4986 rad=12.0 tmin=476236801.0 tmax=476496001.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.50
user 3.30
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77270/ft1_filtered_4FGL_J1148.5+2629_daily_bin914.fits evtable="EVENTS" scfile=/scratch/kocevski/77270/ft2_4FGL_J1148.5+2629_daily_bin914.fits sctable="SC_DATA" expcube=/scratch/kocevski/77270/ltcube_476236801_476496001_4FGL_J1148.5+2629_daily_bin914.fits outfile=/scratch/kocevski/77270/expmap_476236801_476496001_4FGL_J1148.5+2629_daily_bin914.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/77270/ltcube_476236801_476496001_4FGL_J1148.5+2629_daily_bin914.fits
.....................!
real 191.12
user 184.73
sys 4.90

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/77270/ft1_filtered_4FGL_J1148.5+2629_daily_bin914.fits scfile=/scratch/kocevski/77270/ft2_4FGL_J1148.5+2629_daily_bin914.fits outfile=/scratch/kocevski/77270/cmap_476236801_476496001_4FGL_J1148.5+2629_daily_bin914.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .48492E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9794       1.0000         .10000E-03   10000.    
     5 'norm      '    15.326       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .81313       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9708       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8610       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9444       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5506       1.0000         .10000E-03   10000.    
    16 'norm      '    3.6749       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0115       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9327       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14691E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.505       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.5853       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.350       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .31035E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .34378E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .16474E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1445       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .94306       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=   6739.099     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3432 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7179        .40209E-06** at limit **
   2  Prefactor     .10000E-03    .97832        .53018E-08** at limit **
   3  norm          .10000E-03    7.8401       -.68366E-08** at limit **
   4  Prefactor     2.9806        4.9367        .65817E-06    .52779E-03
   5  norm          15.338        14.142        .13593E-06   -.21804E-04
   6  Prefactor     .10000E-03    5.7849        .59505E-06** at limit **
   7  Prefactor     .81434        1.4878        .10381E-05    .74678E-03
   8  Prefactor     5.9559        24.486        .14995E-07   -.78050E-05
   9  Prefactor     .10000E-03    6.1538       -.10650E-06** at limit **
  10  Prefactor     .10000E-03    4.9538       -.12726E-06** at limit **
  11  Prefactor     .10000E-03    1.8634       -.81871E-07** at limit **
  12  Prefactor     6.8552        22.900        .81081E-06   -.17367E-05
  13  Prefactor     4.9509        12.076        .20404E-06    .35869E-05
  14  Prefactor     .10000E-03    .92417        .59092E-07** at limit **
  15  Prefactor     7.5610        19.796       -.84054E-06    .15587E-05
  16  norm          3.6752        1.5719        .12723E-07   -.83404E-05
  17  Prefactor     3.0104        3.8740        .39792E-06    .61302E-03
  18  Prefactor     .10000E-03    16.782       -.12566E-05** at limit **
  19  Prefactor     2.9326        2.8699       -.20449E-07    .19385E-03
  20  Prefactor     .10002E-03    2.1434       -.56086E-06** at limit **
  21  norm          13.505        4.2654        .28094E-07   -.20737E-05
  22  Prefactor     .10000E-03    6.7551       -.79664E-06** at limit **
  23  Prefactor     1.5855        1.7191       -.15346E-08   -.27420E-04
  24  Prefactor     17.349        3.7660        .34906E-07   -.38127E-03
  25  Prefactor     .10000E-03    5.2165       -.93766E-06** at limit **
  26  norm          .10000E-03    .93169E-01    .29899E-08** at limit **
  27  norm          .38519E-01    3.5435        .12493E-05   -.77486E-03
  28  Prefactor     .10000E-03    15.651        .65965E-06** at limit **
  29  Normalizat    1.1445        .18817       -.54321E-06   -.50384E-04
  30  Prefactor     .94285        .19296       -.27068E-06   -.74116E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.98057
  norm       = 15.338
  Prefactor  = 0.0001
  Prefactor  = 0.814343
  Prefactor  = 5.95595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.85519
  Prefactor  = 4.95095
  Prefactor  = 0.0001
  Prefactor  = 7.56101
  norm       = 3.6752
  Prefactor  = 3.01036
  Prefactor  = 0.0001
  Prefactor  = 2.93262
  Prefactor  = 0.00010002
  norm       = 13.5047
  Prefactor  = 0.0001
  Prefactor  = 1.58555
  Prefactor  = 17.3488
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0385187
  Prefactor  = 0.0001
  Normalizat = 1.14451
  Prefactor  = 0.942845
 **********
 **   18 **HESSE 
 **********

 FCN=   6739.099     FROM HESSE     STATUS=OK           604 CALLS     4036 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .98902        .79268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    54.088        .44462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9806        5.0858        .11756E-02   -1.5363    
   5  norm          15.338        14.202        .10231E-03   -1.4924    
   6  Prefactor     .10000E-03    5.8072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .81434        1.4921        .15350E-02   -1.5527    
   8  Prefactor     5.9559        24.558        .16433E-03   -1.5220    
   9  Prefactor     .10000E-03    6.1639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9649        .17843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.8782        .10943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8552        22.999        .15317E-03   -1.5184    
  13  Prefactor     4.9509        12.059        .18087E-03   -1.5263    
  14  Prefactor     .10000E-03    .93469        .76884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5610        19.774        .14595E-03   -1.5158    
  16  norm          3.6752        1.5662        .62702E-04   -1.5325    
  17  Prefactor     3.0104        3.9581        .86989E-03   -1.5361    
  18  Prefactor     .10000E-03    16.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9326        2.7647        .12455E-03   -1.5365    
  20  Prefactor     .10002E-03    15.914        .20694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.505        4.2542        .88059E-04   -1.4973    
  22  Prefactor     .10000E-03    6.7922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.5855        1.7178        .10561E-03   -1.5456    
  24  Prefactor     17.349        3.7605        .69583E-04   -1.4875    
  25  Prefactor     .10000E-03    12.621        .30947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .38322        .48060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .38519E-01    3.4505        .42521E-01   -1.5669    
  28  Prefactor     .10000E-03    16.037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1445        .22915        .25276E-03   -.88335    
  30  Prefactor     .94285        .23262        .29935E-03   -.94660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2128e-09
Minuit parameter uncertainties:
  1  7.58257e-07
  2  2.67646e-07
  3  0.000241201
  4  5.08656
  5  14.205
  6  1.21131e-06
  7  1.49218
  8  24.2049
  9  5.77044e-07
  10  1.62056e-07
  11  1.93858e-06
  12  23.0288
  13  12.0653
  14  3.0662e-06
  15  19.7907
  16  1.56625
  17  3.95842
  18  2.17878e-05
  19  2.7648
  20  0.00113655
  21  4.2543
  22  1.85525e-05
  23  1.71789
  24  3.76051
  25  0.000239669
  26  2.82235e-06
  27  0.728229
  28  3.74214e-05
  29  0.229354
  30  0.232864
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  6.855e+00  2.303e+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:  9.428e-01  2.329e-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.145e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/77270/likelihoodResults_476236801_476496001_4FGL_J1148.5+2629_daily_bin914.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) = 6738.9209036
delta logL = 0.178470395397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6738.91435074
delta logL = 0.185023259804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1600       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9138       1.0000          .0000       10.000    
     3 'Normalizat'    1.1156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96301       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=   6738.914     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      254 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1793        376.24        .37477E-02    .10343E-03
   2  Index         3.9143        6.6904        .27252        .66472E-04
   3  Normalizat    1.1148        .51161E-01    .57803E-01    .21266E-04
   4  Prefactor     .96345        .56424E-01    .67029E-01    .20872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.17928
  Index      = 3.91433
  Normalizat = 1.11477
  Prefactor  = 0.963452
 **********
 **   18 **HESSE 
 **********

 FCN=   6738.914     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1793        19.484        .14991E-03   -1.5172    
   2  Index         3.9143        2.0790        .14712E-01   -.21888    
   3  Normalizat    1.1148        .22156        .25562E-03   -.89279    
   4  Prefactor     .96345        .23381        .29648E-03   -.93958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63266e-11
Minuit parameter uncertainties:
  1  19.5008
  2  2.14765
  3  0.221744
  4  0.234056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77270': 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) = 6738.91433987
delta logL = 0.185034128242

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  7.179e+00  1.950e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  3.914e+00  2.148e+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:  9.635e-01  2.341e-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.115e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/77270/cmap_HighResolution_476236801_476496001_4FGL_J1148.5+2629_daily_bin914.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-04 11:46:33.323182', job_id='77270', GAL2='0.96', fit_tolerance='1e-08', EG2='1.11', EG='1.14', time_epoch_completed='1630781193.32', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.85e-01', ts2='0.51', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='914' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:46:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 77270: <4FGL_J1148.5+2629_daily_bin914> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin914> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 11:31:24 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:31:26 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:26 2021
Terminated at Sat Sep  4 11:46:33 2021
Results reported at Sat Sep  4 11:46:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin914 177.141 26.4986 476236801 476496001 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 :                                   891.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             327.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

