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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin1009
RA = 177.141, Dec = 26.4986
tmin = 500860801, tmax = 501120001
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='79350', job_status='RUN', time_executed='2021-09-04 11:40:11.680975', time_epoch_executed='1630780811.68' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79350

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79350/ft1_4FGL_J1148.5+2629_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79350/ft2_4FGL_J1148.5+2629_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79350/ft1_4FGL_J1148.5+2629_daily_bin1009.fits outfile=/scratch/kocevski/79350/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1009.fits ra=177.141 dec=26.4986 rad=12.0 tmin=500860801.0 tmax=501120001.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.54
user 4.30
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/79350/ft1_filtered_4FGL_J1148.5+2629_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/79350/ft2_4FGL_J1148.5+2629_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/79350/ltcube_500860801_501120001_4FGL_J1148.5+2629_daily_bin1009.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/79350/ft2_4FGL_J1148.5+2629_daily_bin1009.fits
.....................!
real 12.38
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79350/ft1_filtered_4FGL_J1148.5+2629_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/79350/ft2_4FGL_J1148.5+2629_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/79350/ltcube_500860801_501120001_4FGL_J1148.5+2629_daily_bin1009.fits outfile=/scratch/kocevski/79350/expmap_500860801_501120001_4FGL_J1148.5+2629_daily_bin1009.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/79350/ltcube_500860801_501120001_4FGL_J1148.5+2629_daily_bin1009.fits
.....................!
real 193.17
user 188.30
sys 4.50

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/79350/ft1_filtered_4FGL_J1148.5+2629_daily_bin1009.fits scfile=/scratch/kocevski/79350/ft2_4FGL_J1148.5+2629_daily_bin1009.fits outfile=/scratch/kocevski/79350/cmap_HighResolution_500860801_501120001_4FGL_J1148.5+2629_daily_bin1009.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.59
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25726E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3172       1.0000         .10000E-03   10000.    
     3 'norm      '    13.591       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10909E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5232       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21575E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .72555       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.198       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18110E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .59338E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .51308       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25721E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14840E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4475       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.8218       1.0000         .10000E-03   10000.    
    16 'norm      '    4.9139       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .83996E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7953       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    12.840       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6903       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11917E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11189E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    11.489       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.4420       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .75294       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3304       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5538.480     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2257 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8622        .12837E-04** at limit **
   2  Prefactor     3.3220        2.5558       -.17747E-06   -.40586E-04
   3  norm          13.674        16.645        .14749E-04   -.92865E-04
   4  Prefactor     .10000E-03    3.4685       -.16450E-05** at limit **
   5  norm          2.5639        2.1878        .54346E-06    .13747E-03
   6  Prefactor     .10002E-03    4.9455       -.94436E-05** at limit **
   7  Prefactor     .68208        2.1086        .77335E-08   -.43467E-04
   8  Prefactor     37.114        40.269        .18518E-05   -.57812E-03
   9  Prefactor     .10001E-03    21.890       -.14007E-04** at limit **
  10  Prefactor     .11126E-03    25.678        .50116E-05** at limit **
  11  Prefactor     .49902        7.5566       -.33711E-05   -.89245E-04
  12  Prefactor     .10000E-03    18.336        .22288E-06** at limit **
  13  Prefactor     .10000E-03    21.008        .74195E-05** at limit **
  14  Prefactor     3.4502        2.4034        .69790E-06    .10282E-03
  15  Prefactor     9.9930        22.599       -.11560E-04   -.28769E-04
  16  norm          4.9144        1.5403        .35204E-06    .22224E-04
  17  Prefactor     .10000E-03    11.569        .37602E-05** at limit **
  18  Prefactor     .10001E-03    25.099        .14447E-04** at limit **
  19  Prefactor     4.8074        3.2287        .32370E-07    .56185E-05
  20  Prefactor     .10000E-03    1.4211        .17420E-05** at limit **
  21  norm          12.870        4.3728        .75060E-06    .73660E-04
  22  Prefactor     3.7328        3.4301       -.45360E-05   -.10430E-02
  23  Prefactor     .10000E-03    2.5659       -.61176E-06** at limit **
  24  Prefactor     .10000E-03    3.5320       -.23362E-05** at limit **
  25  Prefactor     .10000E-03    4.5458       -.28744E-06** at limit **
  26  norm          .10000E-03    .50001        .42930E-06** at limit **
  27  norm          11.523        5.9711       -.47290E-06   -.95268E-05
  28  Prefactor     7.5788        6.1769       -.31259E-05   -.31339E-03
  29  Normalizat    .75224        .22509        .37047E-06   -.37597E-04
  30  Prefactor     1.3301        .25267       -.20764E-05   -.12435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.32199
  norm       = 13.6735
  Prefactor  = 0.0001
  norm       = 2.56387
  Prefactor  = 0.000100016
  Prefactor  = 0.682078
  Prefactor  = 37.1142
  Prefactor  = 0.000100009
  Prefactor  = 0.000111259
  Prefactor  = 0.499023
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 3.45018
  Prefactor  = 9.99303
  norm       = 4.91444
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 4.80744
  Prefactor  = 0.0001
  norm       = 12.8695
  Prefactor  = 3.73275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.5229
  Prefactor  = 7.57881
  Normalizat = 0.75224
  Prefactor  = 1.3301
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.480     FROM HESSE     STATUS=OK           686 CALLS     2943 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8516        .10727E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.3220        2.5664        .55565E-02   -1.5343    
   3  norm          13.674        16.880        .27162E-02   -1.4968    
   4  Prefactor     .10000E-03    3.4526        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5639        14.053        .64293E-02   -1.5388    
   6  Prefactor     .10002E-03    7.2580        .76524E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .68208        2.1867        .37797E-01   -1.5543    
   8  Prefactor     37.114        41.596        .16887E-02   -1.4489    
   9  Prefactor     .10001E-03    26.244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11126E-03    9.6669        .93155E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .49902        4.0252        .46517E-01   -1.5567    
  12  Prefactor     .10000E-03    18.213        .10727E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.956        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4502        2.4163        .54457E-02   -1.5336    
  15  Prefactor     9.9930        22.723        .31966E-02   -1.5076    
  16  norm          4.9144        1.5427        .45361E-02   -1.5265    
  17  Prefactor     .10000E-03    2.4711        .68193E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    33.209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8074        3.2822        .45930E-02   -1.5269    
  20  Prefactor     .10000E-03    1.4132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          12.870        4.5076        .27946E-02   -1.4990    
  22  Prefactor     3.7328        10.387        .52560E-02   -1.5322    
  23  Prefactor     .10000E-03    2.5135        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.1122        .35423E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.5193        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .11456        .13580E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          11.523        6.0483        .29547E-02   -1.5029    
  28  Prefactor     7.5788        12.913        .36754E-02   -1.5157    
  29  Normalizat    .75224        .20078        .64724E-01   -1.0187    
  30  Prefactor     1.3301        .21257        .57820E-01   -.82416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.62823e-09
Minuit parameter uncertainties:
  1  2.91626e-05
  2  2.56644
  3  16.8857
  4  3.16e-06
  5  12.0091
  6  0.00068218
  7  2.18698
  8  41.6287
  9  0.000987991
  10  0.0208685
  11  2.83451
  12  1.10115e-05
  13  0.000574756
  14  2.41641
  15  22.7429
  16  1.54267
  17  7.59041e-06
  18  0.00096715
  19  3.2823
  20  3.91261e-06
  21  4.50773
  22  10.3918
  23  4.11874e-06
  24  4.64813e-06
  25  1.13223e-05
  26  5.62196e-07
  27  6.04863
  28  12.9181
  29  0.200975
  30  0.212713
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.101e-05  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.330e+00  2.127e-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:  7.522e-01  2.010e-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.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/79350/likelihoodResults_500860801_501120001_4FGL_J1148.5+2629_daily_bin1009.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) = 5538.48015371
delta logL = -0.000259818375525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5538.47989895
delta logL = -5.05606658407e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8926       1.0000          .0000       10.000    
     3 'Normalizat'    .75224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3301       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=   5538.011     FROM MIGRAD    STATUS=CONVERGED    166 CALLS      354 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68046E-02    .43239        .18142E-02    .10760E-01
   2  Index        10.0000        6.0840        .50000    ** at limit **
   3  Normalizat    .70644        .75119E-01    .28634E-02    .18823E-04
   4  Prefactor     1.3666        .83356E-01    .25567E-03   -.39975E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00680462
  Index      = 10
  Normalizat = 0.70644
  Prefactor  = 1.36657
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.011     FROM HESSE     STATUS=OK            35 CALLS      389 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68046E-02    .96556E-02    .79070E-04   -1.5692    
   2  Index        10.0000        6.4679        .50000        7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .70644        .22189        .11454E-03   -1.0364    
   4  Prefactor     1.3666        .25422        .51135E-04   -.81349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33146e-11
Minuit parameter uncertainties:
  1  0.00965563
  2  1.06383e-05
  3  0.222172
  4  0.254453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79350': 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) = 5538.01087183
delta logL = 0.469022062365

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  6.805e-03  9.656e-03  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.000e+01  1.064e-05  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.367e+00  2.545e-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:  7.064e-01  2.222e-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/79350/cmap_HighResolution_500860801_501120001_4FGL_J1148.5+2629_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.06e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-04 11:52:30.258803', job_id='79350', GAL2='1.37', fit_tolerance='1e-08', EG2='0.71', EG='0.75', time_epoch_completed='1630781550.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='4.69e-01', ts2='0.98', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='1009' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:52:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 79350: <4FGL_J1148.5+2629_daily_bin1009> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin1009 177.141 26.4986 500860801 501120001 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 :                                   733.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            984 sec.

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

