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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin941
RA = 177.141, Dec = 26.4986
tmin = 483235201, tmax = 483494401
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='77318', job_status='RUN', time_executed='2021-09-04 11:31:45.032003', time_epoch_executed='1630780305.03' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77318/ft1_4FGL_J1148.5+2629_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77318/ft2_4FGL_J1148.5+2629_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77318/ft1_4FGL_J1148.5+2629_daily_bin941.fits outfile=/scratch/kocevski/77318/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin941.fits ra=177.141 dec=26.4986 rad=12.0 tmin=483235201.0 tmax=483494401.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.44
user 3.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77318/ft1_filtered_4FGL_J1148.5+2629_daily_bin941.fits" evtable="EVENTS" scfile=/scratch/kocevski/77318/ft2_4FGL_J1148.5+2629_daily_bin941.fits sctable="SC_DATA" outfile=/scratch/kocevski/77318/ltcube_483235201_483494401_4FGL_J1148.5+2629_daily_bin941.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/77318/ft2_4FGL_J1148.5+2629_daily_bin941.fits
.....................!
real 12.03
user 11.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77318/ft1_filtered_4FGL_J1148.5+2629_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/77318/ft2_4FGL_J1148.5+2629_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/77318/ltcube_483235201_483494401_4FGL_J1148.5+2629_daily_bin941.fits outfile=/scratch/kocevski/77318/expmap_483235201_483494401_4FGL_J1148.5+2629_daily_bin941.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/77318/ltcube_483235201_483494401_4FGL_J1148.5+2629_daily_bin941.fits
.....................!
real 191.40
user 185.58
sys 4.14

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/77318/ft1_filtered_4FGL_J1148.5+2629_daily_bin941.fits scfile=/scratch/kocevski/77318/ft2_4FGL_J1148.5+2629_daily_bin941.fits outfile=/scratch/kocevski/77318/cmap_483235201_483494401_4FGL_J1148.5+2629_daily_bin941.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/77318/ft1_filtered_4FGL_J1148.5+2629_daily_bin941.fits scfile=/scratch/kocevski/77318/ft2_4FGL_J1148.5+2629_daily_bin941.fits outfile=/scratch/kocevski/77318/cmap_HighResolution_483235201_483494401_4FGL_J1148.5+2629_daily_bin941.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.534       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5800       1.0000         .10000E-03   10000.    
     3 'norm      '    .87255E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7536       1.0000         .10000E-03   10000.    
     5 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.235       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .68057       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9652       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .77999       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.7073       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.466       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20945       1.0000         .10000E-03   10000.    
    21 'norm      '    7.0500       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4611       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.9619       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .13361       1.0000         .10000E-03   10000.    
    27 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.706       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84946       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1704       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=   6181.249     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3994 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.528        14.061       -.13043E-06    .20620E-05
   2  Prefactor     2.5802        3.4624        .15284E-06   -.42710E-04
   3  norm          .10020E-03    10.346        .24621E-05** at limit **
   4  Prefactor     6.7537        5.8034        .41780E-07    .12945E-04
   5  norm          .10000E-03    6.5223       -.92858E-07** at limit **
   6  Prefactor     10.234        8.9186        .49899E-07    .24395E-04
   7  Prefactor     .68134        1.6970        .67777E-06    .11229E-02
   8  Prefactor     .10000E-03    13.525        .71842E-06** at limit **
   9  Prefactor     .10000E-03    4.1142        .57737E-06** at limit **
  10  Prefactor     .10000E-03    7.0823        .10888E-06** at limit **
  11  Prefactor     2.9571        5.2365        .49196E-05   -.10274E-03
  12  Prefactor     .10000E-03    8.5944       -.42399E-06** at limit **
  13  Prefactor     .10000E-03    3.7982       -.35381E-06** at limit **
  14  Prefactor     .77654        1.5000       -.16019E-06   -.49582E-03
  15  Prefactor     .10000E-03    10.650        .74538E-06** at limit **
  16  norm          7.7069        1.6971        .64617E-07    .25656E-03
  17  Prefactor     .10000E-03    .91847       -.61988E-07** at limit **
  18  Prefactor     23.506        30.984       -.61924E-05   -.46801E-04
  19  Prefactor     .10000E-03    1.5600       -.49254E-06** at limit **
  20  Prefactor     .20775        1.6760        .43410E-06   -.17322E-03
  21  norm          7.0494        3.8848        .34041E-07    .92750E-04
  22  Prefactor     .10000E-03    8.8620        .83714E-06** at limit **
  23  Prefactor     4.4607        3.4078       -.30756E-07    .10267E-03
  24  Prefactor     2.9621        2.6041        .32939E-06    .33868E-03
  25  Prefactor     .10000E-03    4.4634       -.59547E-06** at limit **
  26  norm          .13348        .22941        .62575E-07    .18429E-03
  27  norm          .10001E-03    2.7195        .52337E-06** at limit **
  28  Prefactor     12.711        11.511        .25439E-06    .70510E-04
  29  Normalizat    .84930        .18448       -.21642E-05    .15261E-03
  30  Prefactor     1.1711        .19132        .20499E-05    .28825E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5279
  Prefactor  = 2.58019
  norm       = 0.0001002
  Prefactor  = 6.75367
  norm       = 0.0001
  Prefactor  = 10.2336
  Prefactor  = 0.681343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.95711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.776542
  Prefactor  = 0.0001
  norm       = 7.70692
  Prefactor  = 0.0001
  Prefactor  = 23.5057
  Prefactor  = 0.0001
  Prefactor  = 0.207746
  norm       = 7.04938
  Prefactor  = 0.000100001
  Prefactor  = 4.46075
  Prefactor  = 2.9621
  Prefactor  = 0.0001
  norm       = 0.13348
  norm       = 0.000100006
  Prefactor  = 12.7106
  Normalizat = 0.849301
  Prefactor  = 1.17106
 **********
 **   18 **HESSE 
 **********

 FCN=   6181.249     FROM HESSE     STATUS=OK           598 CALLS     4592 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.528        14.012        .10506E-03   -1.4945    
   2  Prefactor     2.5802        3.4367        .14482E-03   -1.5387    
   3  norm          .10020E-03    50.124        .45731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.7537        5.8017        .15440E-03   -1.5188    
   5  norm          .10000E-03    6.5769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.234        8.9110        .12525E-03   -1.5068    
   7  Prefactor     .68134        1.5481        .15398E-02   -1.5543    
   8  Prefactor     .10000E-03    13.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1114        .15561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9571        5.3127        .11209E-02   -1.5364    
  12  Prefactor     .10000E-03    8.6297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8381        .14965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .77654        1.3746        .12677E-02   -1.5532    
  15  Prefactor     .10000E-03    10.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.7069        1.6966        .45790E-04   -1.5153    
  17  Prefactor     .10000E-03    .92117        .73562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.506        30.746        .82689E-04   -1.4738    
  19  Prefactor     .10000E-03    2.5335        .18439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .20775        6.4820        .18976E-02   -1.5617    
  21  norm          7.0494        3.9062        .97695E-04   -1.5177    
  22  Prefactor     .10000E-03    9.1870        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.4607        3.4206        .10756E-03   -1.5286    
  24  Prefactor     2.9621        2.5745        .10855E-03   -1.5364    
  25  Prefactor     .10000E-03    4.5019        .16199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .13348        .22083        .45157E-04   -1.5635    
  27  norm          .10001E-03    16.188        .24351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.711        11.472        .11238E-03   -1.4995    
  29  Normalizat    .84930        .20590        .26090E-03   -.98265    
  30  Prefactor     1.1711        .22341        .26109E-03   -.87227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39794e-08
Minuit parameter uncertainties:
  1  14.0156
  2  3.43692
  3  0.00634556
  4  5.80218
  5  3.01704e-05
  6  8.91218
  7  1.54823
  8  6.45212e-05
  9  7.09922e-06
  10  3.4037e-05
  11  5.31356
  12  1.26502e-05
  13  9.51965e-06
  14  1.37463
  15  9.71838e-05
  16  1.69661
  17  2.03727e-06
  18  30.7663
  19  1.63461e-05
  20  2.32059
  21  3.90637
  22  0.000174443
  23  3.42078
  24  2.57456
  25  1.75214e-05
  26  0.220835
  27  0.00062377
  28  11.4744
  29  0.206094
  30  0.223594
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.265e-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.171e+00  2.236e-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:  8.493e-01  2.061e-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: 6.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77318/likelihoodResults_483235201_483494401_4FGL_J1148.5+2629_daily_bin941.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) = 6181.24943235
delta logL = -0.000552032977794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6181.24888095
delta logL = -6.32999217487e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10811E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9105       1.0000          .0000       10.000    
     3 'Normalizat'    .84920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1712       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=   6181.249     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10236E-03    30.541        .18142E-01** at limit **
   2  Index         2.7844        8.3632        .50000        .10215E-04
   3  Normalizat    .84930        .77522E-02    .26090E-03    .20306E-04
   4  Prefactor     1.1711        .89999E-02    .26109E-03    .15327E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102359
  Index      = 2.78439
  Normalizat = 0.849303
  Prefactor  = 1.17105
 **********
 **   18 **HESSE 
 **********

 FCN=   6181.249     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10236E-03    246.85        .23105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7844        6.9636        .50000       -.45908    
   3  Normalizat    .84930        .22493E-01    .10436E-04   -.98265    
   4  Prefactor     1.1711        .26113E-01    .10444E-04   -.87227    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88454e-08
Minuit parameter uncertainties:
  1  0.0484654
  2  1083.79
  3  0.0224934
  4  0.0261134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77318': 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) = 6181.24888007
delta logL = 2.39913788391e-07

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.024e-04  4.847e-02  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.784e+00  1.084e+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.171e+00  2.611e-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:  8.493e-01  2.249e-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/77318/cmap_HighResolution_483235201_483494401_4FGL_J1148.5+2629_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-04 11:47:04.362564', job_id='77318', GAL2='1.17', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630781224.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='941' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:47:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 77318: <4FGL_J1148.5+2629_daily_bin941> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin941> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 11:31:27 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:31:29 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:29 2021
Terminated at Sat Sep  4 11:47:05 2021
Results reported at Sat Sep  4 11:47:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin941 177.141 26.4986 483235201 483494401 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 :                                   916.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

