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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin1578
RA = 177.141, Dec = 26.4986
tmin = 648345601, tmax = 648604801
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='81529', job_status='RUN', time_executed='2021-09-04 11:42:19.637712', time_epoch_executed='1630780939.64' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='1578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81529

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81529/ft1_4FGL_J1148.5+2629_daily_bin1578.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81529/ft2_4FGL_J1148.5+2629_daily_bin1578.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81529/ft1_4FGL_J1148.5+2629_daily_bin1578.fits outfile=/scratch/kocevski/81529/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1578.fits ra=177.141 dec=26.4986 rad=12.0 tmin=648345601.0 tmax=648604801.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 2.91
user 2.71
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81529/ft1_filtered_4FGL_J1148.5+2629_daily_bin1578.fits evtable="EVENTS" scfile=/scratch/kocevski/81529/ft2_4FGL_J1148.5+2629_daily_bin1578.fits sctable="SC_DATA" expcube=/scratch/kocevski/81529/ltcube_648345601_648604801_4FGL_J1148.5+2629_daily_bin1578.fits outfile=/scratch/kocevski/81529/expmap_648345601_648604801_4FGL_J1148.5+2629_daily_bin1578.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/81529/ltcube_648345601_648604801_4FGL_J1148.5+2629_daily_bin1578.fits
.....................!
real 189.47
user 184.96
sys 4.20

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/81529/ft1_filtered_4FGL_J1148.5+2629_daily_bin1578.fits scfile=/scratch/kocevski/81529/ft2_4FGL_J1148.5+2629_daily_bin1578.fits outfile=/scratch/kocevski/81529/cmap_648345601_648604801_4FGL_J1148.5+2629_daily_bin1578.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/81529/ft1_filtered_4FGL_J1148.5+2629_daily_bin1578.fits scfile=/scratch/kocevski/81529/ft2_4FGL_J1148.5+2629_daily_bin1578.fits outfile=/scratch/kocevski/81529/cmap_HighResolution_648345601_648604801_4FGL_J1148.5+2629_daily_bin1578.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=177.141 yref=26.4986 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.836       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5451       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4085       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4137       1.0000         .10000E-03   10000.    
     5 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8859       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7384       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12076E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3099       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    13.062       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .80447       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7938       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0017       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4539       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5681       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8437       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3605       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .56202E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    11.397       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4037       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .64595       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=   4579.700     FROM MIGRAD    STATUS=CONVERGED   1379 CALLS     5789 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.835        18.939        .10065E-03    .19428E-04
   2  Prefactor     2.5451        3.1901        .13113E-03    .94414E-04
   3  norm          1.4060        86.972        .18258E-02    .16109E-04
   4  Prefactor     2.4145        8.8007        .13174E-02   -.48325E-04
   5  norm          .10000E-03    13.174        .18142E-02** at limit **
   6  Prefactor     .10000E-03    11.380        .18142E-02** at limit **
   7  Prefactor     .10000E-03    1.0401        .67275E-03** at limit **
   8  Prefactor     .10000E-03    21.765        .18142E-02** at limit **
   9  Prefactor     .10000E-03    153.61        .36285E-02** at limit **
  10  Prefactor     6.8814        13.580        .15289E-03    .13042E-03
  11  Prefactor     2.7380        4.4210        .17584E-03    .66595E-04
  12  Prefactor     .10000E-03    118.13        .47074E-02** at limit **
  13  Prefactor     .10000E-03    3.9520        .13124E-02** at limit **
  14  Prefactor     1.3099        1.5189        .87593E-04   -.60949E-03
  15  Prefactor     .10000E-03    23.729        .18142E-02** at limit **
  16  norm          13.062        2.5466        .45304E-04   -.10022E-02
  17  Prefactor     .80394        4.7164        .27064E-03    .86954E-05
  18  Prefactor     .10000E-03    15.463        .18142E-02** at limit **
  19  Prefactor     2.7939        2.6854        .10169E-03   -.10766E-03
  20  Prefactor     4.0017        3.2961        .10545E-03   -.24776E-03
  21  norm          3.4537        3.5337        .10133E-03   -.53852E-05
  22  Prefactor     8.5679        7.1716        .13695E-03   -.18512E-04
  23  Prefactor     1.8437        2.7784        .11030E-03    .39684E-04
  24  Prefactor     2.3607        2.0526        .86452E-04   -.95734E-04
  25  Prefactor     .10000E-03    3.4306        .12206E-02** at limit **
  26  norm          .56162E-01    .17150        .46391E-04    .12484E-02
  27  norm          11.397        5.8037        .11098E-03   -.28877E-03
  28  Prefactor     .10000E-03    17.760        .36285E-03** at limit **
  29  Normalizat    1.4037        .25350        .23327E-03   -.32637E-03
  30  Prefactor     .64593        .26293        .35167E-03   -.22933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8346
  Prefactor  = 2.54512
  norm       = 1.40601
  Prefactor  = 2.4145
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 6.88141
  Prefactor  = 2.73804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.30985
  Prefactor  = 0.0001
  norm       = 13.0622
  Prefactor  = 0.803939
  Prefactor  = 0.0001
  Prefactor  = 2.79385
  Prefactor  = 4.00167
  norm       = 3.45374
  Prefactor  = 8.56793
  Prefactor  = 1.84365
  Prefactor  = 2.36074
  Prefactor  = 0.0001
  norm       = 0.0561616
  norm       = 11.397
  Prefactor  = 0.0001
  Normalizat = 1.40373
  Prefactor  = 0.645934
 **********
 **   18 **HESSE 
 **********

 FCN=   4579.700     FROM HESSE     STATUS=OK           560 CALLS     6349 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.835        18.938        .40259E-05   -1.4912    
   2  Prefactor     2.5451        3.1900        .52452E-05   -1.5389    
   3  norm          1.4060        86.899        .73030E-04   -1.5471    
   4  Prefactor     2.4145        8.7967        .52697E-04   -1.5397    
   5  norm          .10000E-03    13.176        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.0401        .13455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    154.66        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8814        13.575        .61157E-05   -1.5183    
  11  Prefactor     2.7380        4.4209        .70334E-05   -1.5377    
  12  Prefactor     .10000E-03    119.94        .94148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9522        .26248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3099        1.5186        .35037E-05   -1.5479    
  15  Prefactor     .10000E-03    23.732        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          13.062        2.5463        .90608E-05   -1.4985    
  17  Prefactor     .80394        4.7112        .10826E-04   -1.5529    
  18  Prefactor     .10000E-03    15.464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7939        2.6848        .40676E-05   -1.5374    
  20  Prefactor     4.0017        3.2960        .42179E-05   -1.5308    
  21  norm          3.4537        3.5360        .40533E-05   -1.5336    
  22  Prefactor     8.5679        7.1715        .54778E-05   -1.5122    
  23  Prefactor     1.8437        2.7803        .44118E-05   -1.5436    
  24  Prefactor     2.3607        2.0525        .34581E-05   -1.5401    
  25  Prefactor     .10000E-03    3.4308        .24411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .56162E-01    .17147        .18556E-05   -1.5661    
  27  norm          11.397        5.8033        .44393E-05   -1.5033    
  28  Prefactor     .10000E-03    17.761        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4037        .25346        .46655E-04   -.80521    
  30  Prefactor     .64593        .26310        .14067E-04   -1.0569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21431e-10
Minuit parameter uncertainties:
  1  18.9449
  2  3.19023
  3  22.14
  4  8.80138
  5  3.63264e-05
  6  7.76021e-05
  7  5.06557e-06
  8  0.000114027
  9  0.00171995
  10  13.5813
  11  4.42142
  12  0.000438209
  13  1.21057e-05
  14  1.5186
  15  0.000162629
  16  2.54635
  17  3.89255
  18  0.00014687
  19  2.68496
  20  3.29614
  21  3.53626
  22  7.17218
  23  2.78048
  24  2.05255
  25  1.52169e-05
  26  0.171467
  27  5.80361
  28  0.000174439
  29  0.253684
  30  0.263607
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  4.382e-04  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:  6.459e-01  2.636e-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.404e+00  2.537e-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.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81529/likelihoodResults_648345601_648604801_4FGL_J1148.5+2629_daily_bin1578.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) = 4579.70024652
delta logL = -3.96849700337e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4579.70024651
delta logL = -3.96798868678e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96347E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9236       1.0000          .0000       10.000    
     3 'Normalizat'    1.4037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64594       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=   4579.700     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      228 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5731        .13917    ** at limit **
   2  Index         2.8754        5.7551        .50000        .28663E-05
   3  Normalizat    1.4037        .24431E-02    .52762E-01   -.28346E-03
   4  Prefactor     .64594        .26156E-02    .79416E-01   -.23883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.87542
  Normalizat = 1.40373
  Prefactor  = 0.645939
 **********
 **   18 **HESSE 
 **********

 FCN=   4579.700     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    711.34        .47394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8754        7.6317        .50000       -.43887    
   3  Normalizat    1.4037        .13028E-01    .23328E-03   -.80521    
   4  Prefactor     .64594        .13919E-01    .35167E-03   -1.0569    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61701e-07
Minuit parameter uncertainties:
  1  0.00234008
  2  649.032
  3  0.0130284
  4  0.0139186
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81529': 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) = 4579.7002068
delta logL = 3.53238647222e-08

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.340e-03  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.875e+00  6.490e+02  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:  6.459e-01  1.392e-02  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.404e+00  1.303e-02  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/81529/cmap_HighResolution_648345601_648604801_4FGL_J1148.5+2629_daily_bin1578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.95e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-04 11:57:06.336974', job_id='81529', GAL2='0.65', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630781826.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='3.53e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='1578' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:57:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 81529: <4FGL_J1148.5+2629_daily_bin1578> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin1578> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:42:07 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:42:09 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:42:09 2021
Terminated at Sat Sep  4 11:57:06 2021
Results reported at Sat Sep  4 11:57:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin1578 177.141 26.4986 648345601 648604801 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 :                                   860.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            899 sec.

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

