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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin35
RA = 177.141, Dec = 26.4986
tmin = 248400001, tmax = 248659201
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='71111', job_status='RUN', time_executed='2021-09-04 11:19:23.540895', time_epoch_executed='1630779563.54' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71111

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71111/ft1_4FGL_J1148.5+2629_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71111/ft2_4FGL_J1148.5+2629_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71111/ft1_4FGL_J1148.5+2629_daily_bin35.fits outfile=/scratch/kocevski/71111/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin35.fits ra=177.141 dec=26.4986 rad=12.0 tmin=248400001.0 tmax=248659201.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 1.42
user 1.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71111/ft1_filtered_4FGL_J1148.5+2629_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/71111/ft2_4FGL_J1148.5+2629_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/71111/ltcube_248400001_248659201_4FGL_J1148.5+2629_daily_bin35.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/71111/ft2_4FGL_J1148.5+2629_daily_bin35.fits
.....................!
real 13.03
user 12.60
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71111/ft1_filtered_4FGL_J1148.5+2629_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/71111/ft2_4FGL_J1148.5+2629_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/71111/ltcube_248400001_248659201_4FGL_J1148.5+2629_daily_bin35.fits outfile=/scratch/kocevski/71111/expmap_248400001_248659201_4FGL_J1148.5+2629_daily_bin35.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/71111/ltcube_248400001_248659201_4FGL_J1148.5+2629_daily_bin35.fits
.....................!
real 190.43
user 185.18
sys 4.79

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/71111/ft1_filtered_4FGL_J1148.5+2629_daily_bin35.fits scfile=/scratch/kocevski/71111/ft2_4FGL_J1148.5+2629_daily_bin35.fits outfile=/scratch/kocevski/71111/cmap_248400001_248659201_4FGL_J1148.5+2629_daily_bin35.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71111/ft1_filtered_4FGL_J1148.5+2629_daily_bin35.fits scfile=/scratch/kocevski/71111/ft2_4FGL_J1148.5+2629_daily_bin35.fits outfile=/scratch/kocevski/71111/cmap_HighResolution_248400001_248659201_4FGL_J1148.5+2629_daily_bin35.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.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4661       1.0000         .10000E-03   10000.    
     3 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1808       1.0000         .10000E-03   10000.    
     5 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2455       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .70491       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4313       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .97044       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9457       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7796       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11080E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7088       1.0000         .10000E-03   10000.    
    21 'norm      '    4.1383       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22853E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1768       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.2615       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .17002       1.0000         .10000E-03   10000.    
    27 'norm      '    2.4358       1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.503       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0768       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93462       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=   6391.392     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3348 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7339       -.42932E-06** at limit **
   2  Prefactor     4.4656        2.7677        .12345E-06   -.23718E-03
   3  norm          .10000E-03    25.481       -.46858E-05** at limit **
   4  Prefactor     3.1808        4.2598       -.37437E-06   -.79447E-04
   5  norm          .10000E-03    4.1044       -.63241E-07** at limit **
   6  Prefactor     1.2453        4.0180       -.18735E-05   -.71563E-03
   7  Prefactor     .70441        1.9157       -.57134E-06   -.12384E-02
   8  Prefactor     .10000E-03    12.666       -.14181E-05** at limit **
   9  Prefactor     .10000E-03    7.7961        .56151E-07** at limit **
  10  Prefactor     .10000E-03    11.436        .18350E-05** at limit **
  11  Prefactor     .10000E-03    1.4718        .20404E-06** at limit **
  12  Prefactor     2.4302        16.558       -.11784E-05   -.11597E-03
  13  Prefactor     .10000E-03    12.962       -.21548E-05** at limit **
  14  Prefactor     .97039        1.5703       -.51042E-07   -.79352E-03
  15  Prefactor     .10000E-03    21.365        .61815E-05** at limit **
  16  norm          2.9458        1.3166       -.30515E-07   -.18847E-03
  17  Prefactor     3.7812        4.3106       -.34348E-06   -.17169E-03
  18  Prefactor     .10000E-03    16.831        .12471E-05** at limit **
  19  Prefactor     .10000E-03    1.7094       -.59171E-06** at limit **
  20  Prefactor     7.7109        3.8957        .11761E-05   -.50459E-03
  21  norm          4.1387        3.5733       -.18124E-06   -.78714E-04
  22  Prefactor     .10000E-03    4.8345       -.23965E-06** at limit **
  23  Prefactor     1.1767        2.5066       -.57955E-07   -.86940E-03
  24  Prefactor     7.2616        3.0180        .27318E-06   -.44617E-03
  25  Prefactor     .10000E-03    2.3596       -.87764E-07** at limit **
  26  norm          .17002        .19902       -.34945E-07   -.20887E-02
  27  norm          2.4352        3.5975        .58479E-06   -.57645E-03
  28  Prefactor     13.503        9.6988        .73372E-08   -.25745E-04
  29  Normalizat    1.0768        .17836       -.14212E-06    .18548E-03
  30  Prefactor     .93468        .18936        .48520E-06    .10772E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.46556
  norm       = 0.000100002
  Prefactor  = 3.18079
  norm       = 0.0001
  Prefactor  = 1.24527
  Prefactor  = 0.704411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.43022
  Prefactor  = 0.0001
  Prefactor  = 0.97039
  Prefactor  = 0.000100002
  norm       = 2.94578
  Prefactor  = 3.78121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.71087
  norm       = 4.13866
  Prefactor  = 0.000100001
  Prefactor  = 1.17673
  Prefactor  = 7.26157
  Prefactor  = 0.0001
  norm       = 0.170022
  norm       = 2.43516
  Prefactor  = 13.5034
  Normalizat = 1.07682
  Prefactor  = 0.934676
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.392     FROM HESSE     STATUS=OK           598 CALLS     3946 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7404        .16977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.4656        2.7614        .99965E-04   -1.5285    
   3  norm          .10000E-03    25.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1808        4.2534        .18527E-03   -1.5351    
   5  norm          .10000E-03    15.944        .31149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.2453        4.2406        .29923E-03   -1.5485    
   7  Prefactor     .70441        2.0003        .18257E-03   -1.5540    
   8  Prefactor     .10000E-03    12.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.8218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.4769        .94671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4302        16.217        .26244E-03   -1.5396    
  13  Prefactor     .10000E-03    13.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .97039        1.3866        .11845E-02   -1.5511    
  15  Prefactor     .10000E-03    20.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9458        1.3141        .58492E-04   -1.5365    
  17  Prefactor     3.7812        4.2696        .16462E-03   -1.5319    
  18  Prefactor     .10000E-03    16.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2540        .19584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7109        3.7340        .10326E-03   -1.5153    
  21  norm          4.1387        3.5623        .11464E-03   -1.5301    
  22  Prefactor     .10000E-03    15.743        .34017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1767        2.4729        .15324E-03   -1.5491    
  24  Prefactor     7.2616        2.9996        .82827E-04   -1.5169    
  25  Prefactor     .10000E-03    2.3708        .11985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .17002        .18576        .36759E-03   -1.5626    
  27  norm          2.4352        3.5411        .17566E-03   -1.5396    
  28  Prefactor     13.503        9.6922        .10900E-03   -1.4973    
  29  Normalizat    1.0768        .20134        .23613E-03   -.90499    
  30  Prefactor     .93468        .21617        .28048E-03   -.94940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29791e-09
Minuit parameter uncertainties:
  1  1.12633e-05
  2  2.76148
  3  0.0004342
  4  4.25376
  5  0.000117694
  6  4.24161
  7  2.00051
  8  9.06568e-05
  9  4.21558e-06
  10  0.000102555
  11  2.91145e-06
  12  12.5604
  13  0.000141155
  14  1.3866
  15  0.000436965
  16  1.31409
  17  4.26999
  18  8.13056e-05
  19  6.27332e-05
  20  3.73415
  21  3.56249
  22  0.000199306
  23  2.47316
  24  2.99965
  25  4.48513e-06
  26  0.185762
  27  3.54144
  28  9.69333
  29  0.201483
  30  0.21637
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  2.430e+00  1.256e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.924e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  9.347e-01  2.164e-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.077e+00  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 177.141 26.499
Photon Flux Upper Limit: 8.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71111/likelihoodResults_248400001_248659201_4FGL_J1148.5+2629_daily_bin35.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6391.20434946
delta logL = 0.187517493359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6391.10591401
delta logL = 0.285952944127

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0566       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8596       1.0000          .0000       10.000    
     3 'Normalizat'    1.0839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92136       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=   6391.106     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0510        11.433        .37754E-02    .97740E-04
   2  Index         1.8593        .54569        .26665       -.73500E-04
   3  Normalizat    1.0837        .16847        .38698E-01    .35810E-04
   4  Prefactor     .92155        .18903        .45277E-01    .10242E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.05097
  Index      = 1.85927
  Normalizat = 1.0837
  Prefactor  = 0.92155
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.106     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0510        12.089        .15101E-03   -1.5177    
   2  Index         1.8593        .87849        .10827E-01   -.67917    
   3  Normalizat    1.0837        .19248        .23541E-03   -.90277    
   4  Prefactor     .92155        .21572        .28210E-03   -.95392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65921e-11
Minuit parameter uncertainties:
  1  12.0928
  2  0.886129
  3  0.192605
  4  0.215923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71111': 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) = 6391.10591349
delta logL = 0.285953467671

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  7.051e+00  1.209e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.859e+00  8.861e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  9.215e-01  2.159e-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.084e+00  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/71111/cmap_HighResolution_248400001_248659201_4FGL_J1148.5+2629_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-03', job_status='DONE', photon_flux_upper_limit='8.97e-08', time_completed='2021-09-04 11:33:25.645779', job_id='71111', GAL2='0.92', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630780405.65', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.86e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='35' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:33:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 71111: <4FGL_J1148.5+2629_daily_bin35> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin35> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:16:49 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:16:50 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:16:50 2021
Terminated at Sat Sep  4 11:33:26 2021
Results reported at Sat Sep  4 11:33:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin35 177.141 26.4986 248400001 248659201 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 :                                   841.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

