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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin333
RA = 177.141, Dec = 26.4986
tmin = 325641601, tmax = 325900801
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='73850', job_status='RUN', time_executed='2021-09-04 11:21:52.213906', time_epoch_executed='1630779712.21' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/73850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/73850/ft1_4FGL_J1148.5+2629_daily_bin333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/73850/ft2_4FGL_J1148.5+2629_daily_bin333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/73850/ft1_4FGL_J1148.5+2629_daily_bin333.fits outfile=/scratch/kocevski/73850/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin333.fits ra=177.141 dec=26.4986 rad=12.0 tmin=325641601.0 tmax=325900801.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 4.32
user 3.82
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/73850/ft1_filtered_4FGL_J1148.5+2629_daily_bin333.fits" evtable="EVENTS" scfile=/scratch/kocevski/73850/ft2_4FGL_J1148.5+2629_daily_bin333.fits sctable="SC_DATA" outfile=/scratch/kocevski/73850/ltcube_325641601_325900801_4FGL_J1148.5+2629_daily_bin333.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/73850/ft2_4FGL_J1148.5+2629_daily_bin333.fits
.....................!
real 12.95
user 12.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/73850/ft1_filtered_4FGL_J1148.5+2629_daily_bin333.fits evtable="EVENTS" scfile=/scratch/kocevski/73850/ft2_4FGL_J1148.5+2629_daily_bin333.fits sctable="SC_DATA" expcube=/scratch/kocevski/73850/ltcube_325641601_325900801_4FGL_J1148.5+2629_daily_bin333.fits outfile=/scratch/kocevski/73850/expmap_325641601_325900801_4FGL_J1148.5+2629_daily_bin333.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/73850/ltcube_325641601_325900801_4FGL_J1148.5+2629_daily_bin333.fits
.....................!
real 191.58
user 186.28
sys 4.74

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/73850/ft1_filtered_4FGL_J1148.5+2629_daily_bin333.fits scfile=/scratch/kocevski/73850/ft2_4FGL_J1148.5+2629_daily_bin333.fits outfile=/scratch/kocevski/73850/cmap_325641601_325900801_4FGL_J1148.5+2629_daily_bin333.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/73850/ft1_filtered_4FGL_J1148.5+2629_daily_bin333.fits scfile=/scratch/kocevski/73850/ft2_4FGL_J1148.5+2629_daily_bin333.fits outfile=/scratch/kocevski/73850/cmap_HighResolution_325641601_325900801_4FGL_J1148.5+2629_daily_bin333.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.853       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10701E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3599       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7973       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.4801       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7769       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10748E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.504       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37486E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12553E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.308       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    55.446       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3174       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14510E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.362       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .97291       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5237       1.0000         .10000E-03   10000.    
    21 'norm      '    5.8177       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6683       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .25085E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .35884       1.0000         .10000E-03   10000.    
    27 'norm      '    10.344       1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.790       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .52629       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4413       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=   5700.376     FROM MIGRAD    STATUS=CONVERGED    790 CALLS     4088 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.840        16.582       -.76573E-07    .60337E-04
   2  Prefactor     .10000E-03    1.8589       -.70755E-07** at limit **
   3  norm          .10000E-03    10.696       -.12823E-06** at limit **
   4  Prefactor     4.3604        5.2097        .18685E-07    .17872E-03
   5  norm          4.7945        9.2476       -.79616E-06    .30604E-03
   6  Prefactor     7.4764        12.660       -.21532E-06    .57175E-04
   7  Prefactor     1.7769        2.1701        .11139E-06    .24644E-03
   8  Prefactor     .10000E-03    16.679       -.24002E-06** at limit **
   9  Prefactor     37.461        25.013        .66039E-06    .59730E-03
  10  Prefactor     .10000E-03    20.547        .41788E-05** at limit **
  11  Prefactor     .10000E-03    10.859        .34611E-05** at limit **
  12  Prefactor     .10000E-03    7.9156       -.12688E-06** at limit **
  13  Prefactor     18.304        13.951        .37185E-07    .30190E-03
  14  Prefactor     .10000E-03    .49657       -.63831E-07** at limit **
  15  Prefactor     55.455        41.818        .20543E-06    .17134E-04
  16  norm          2.3170        1.6004       -.67696E-07    .29237E-03
  17  Prefactor     .10003E-03    14.181       -.61092E-05** at limit **
  18  Prefactor     27.332        30.251        .79032E-06    .42189E-03
  19  Prefactor     .96131        4.2037        .10528E-05    .68888E-03
  20  Prefactor     2.5345        5.0361       -.87819E-06   -.10871E-05
  21  norm          5.8192        3.6872        .22222E-06    .87112E-03
  22  Prefactor     3.6679        5.6893       -.59422E-07    .57723E-04
  23  Prefactor     .10000E-03    1.5645       -.13217E-06** at limit **
  24  Prefactor     .10000E-03    1.4980       -.18806E-06** at limit **
  25  Prefactor     .10000E-03    2.1440       -.26651E-07** at limit **
  26  norm          .35885        .26959       -.25294E-07    .69744E-03
  27  norm          10.344        5.7488        .84853E-08    .32152E-03
  28  Prefactor     16.789        12.146        .72778E-07    .13074E-03
  29  Normalizat    .52637        .21500        .15191E-05    .39370E-03
  30  Prefactor     1.4413        .22161        .15772E-07    .41890E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8398
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.36039
  norm       = 4.79455
  Prefactor  = 7.47639
  Prefactor  = 1.77693
  Prefactor  = 0.0001
  Prefactor  = 37.461
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.3044
  Prefactor  = 0.0001
  Prefactor  = 55.4549
  norm       = 2.31705
  Prefactor  = 0.000100028
  Prefactor  = 27.3322
  Prefactor  = 0.961306
  Prefactor  = 2.53448
  norm       = 5.8192
  Prefactor  = 3.66786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.358851
  norm       = 10.344
  Prefactor  = 16.7894
  Normalizat = 0.526367
  Prefactor  = 1.44129
 **********
 **   18 **HESSE 
 **********

 FCN=   5700.376     FROM HESSE     STATUS=OK           600 CALLS     4688 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.840        16.511        .83790E-04   -1.4752    
   2  Prefactor     .10000E-03    1.9167        .20035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3604        5.1991        .18091E-03   -1.5290    
   5  norm          4.7945        9.2181        .91842E-03   -1.5270    
   6  Prefactor     7.4764        12.621        .14664E-03   -1.5161    
   7  Prefactor     1.7769        2.1347        .11743E-03   -1.5441    
   8  Prefactor     .10000E-03    16.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.461        23.881        .65445E-04   -1.4483    
  10  Prefactor     .10000E-03    55.127        .47029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.054        .33641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.9407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.304        13.807        .93606E-04   -1.4852    
  14  Prefactor     .10000E-03    .50117        .51962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     55.455        41.326        .53870E-04   -1.4217    
  16  norm          2.3170        1.5867        .73072E-04   -1.5404    
  17  Prefactor     .10003E-03    22.830        .21791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.332        30.466        .76587E-04   -1.4662    
  19  Prefactor     .96131        3.6347        .22011E-03   -1.5512    
  20  Prefactor     2.5345        4.6485        .17712E-03   -1.5390    
  21  norm          5.8192        3.4008        .50611E-03   -1.5225    
  22  Prefactor     3.6679        5.6751        .21089E-03   -1.5325    
  23  Prefactor     .10000E-03    23.176        .16452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.5382        .18032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.1466        .10793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .35885        .25986        .31795E-03   -1.5588    
  27  norm          10.344        5.7380        .12458E-03   -1.5065    
  28  Prefactor     16.789        12.094        .97744E-04   -1.4888    
  29  Normalizat    .52637        .23903        .34327E-03   -1.1121    
  30  Prefactor     1.4413        .25534        .24476E-03   -.79198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33623e-09
Minuit parameter uncertainties:
  1  16.514
  2  1.55798e-06
  3  1.0843e-05
  4  5.1996
  5  9.22081
  6  12.6255
  7  2.13484
  8  0.000116439
  9  23.8867
  10  0.000250816
  11  0.000373666
  12  2.30469e-06
  13  13.8094
  14  1.1582e-06
  15  41.3474
  16  1.58668
  17  0.00160188
  18  30.4831
  19  3.63558
  20  4.64911
  21  3.40093
  22  5.67597
  23  0.000209684
  24  9.71642e-06
  25  3.36292e-06
  26  0.259865
  27  5.7383
  28  12.0955
  29  0.239494
  30  0.255566
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.305e-06  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:  1.441e+00  2.556e-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:  5.264e-01  2.395e-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: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/73850/likelihoodResults_325641601_325900801_4FGL_J1148.5+2629_daily_bin333.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) = 5700.37686245
delta logL = -0.000598729940975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5700.37626373
delta logL = -3.83988663089e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9251       1.0000          .0000       10.000    
     3 'Normalizat'    .52637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4413       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=   5700.376     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      252 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    574.39        .18142E-02** at limit **
   2  Index         3.0372        6.0683        .50000       -.12897E-06
   3  Normalizat    .52636        .43084E-01    .34327E-03    .83956E-03
   4  Prefactor     1.4413        .48886E-01    .24476E-03    .12922E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.03721
  Normalizat = 0.526364
  Prefactor  = 1.44129
 **********
 **   18 **HESSE 
 **********

 FCN=   5700.376     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1741.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0372        5.7397        .50000       -.40341    
   3  Normalizat    .52636        .14925        .68654E-04   -1.1121    
   4  Prefactor     1.4413        .16940        .48952E-04   -.79197    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65003e-08
Minuit parameter uncertainties:
  1  0.00047503
  2  4545.47
  3  0.149363
  4  0.169461
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/73850': 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): 102
logL (Free Index) = 5700.3762637
delta logL = 2.27337295655e-08

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  4.750e-04  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  3.037e+00  4.545e+03  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:  1.441e+00  1.695e-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:  5.264e-01  1.494e-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/73850/cmap_HighResolution_325641601_325900801_4FGL_J1148.5+2629_daily_bin333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-04 11:36:36.131583', job_id='73850', GAL2='1.44', fit_tolerance='1e-08', EG2='0.53', EG='0.53', time_epoch_completed='1630780596.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.44', dlogl='2.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='333' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:36:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 73850: <4FGL_J1148.5+2629_daily_bin333> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin333 177.141 26.4986 325641601 325900801 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 :                                   881.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

