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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin91
RA = 177.141, Dec = 26.4986
tmin = 262915201, tmax = 263174401
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='71205', job_status='RUN', time_executed='2021-09-04 11:19:11.467801', time_epoch_executed='1630779551.47' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71205

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71205/ft1_4FGL_J1148.5+2629_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71205/ft2_4FGL_J1148.5+2629_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71205/ft1_4FGL_J1148.5+2629_daily_bin91.fits outfile=/scratch/kocevski/71205/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin91.fits ra=177.141 dec=26.4986 rad=12.0 tmin=262915201.0 tmax=263174401.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.29
user 1.11
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/71205/ft1_filtered_4FGL_J1148.5+2629_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/71205/ft2_4FGL_J1148.5+2629_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/71205/ltcube_262915201_263174401_4FGL_J1148.5+2629_daily_bin91.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/71205/ft2_4FGL_J1148.5+2629_daily_bin91.fits
.....................!
real 11.44
user 11.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71205/ft1_filtered_4FGL_J1148.5+2629_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/71205/ft2_4FGL_J1148.5+2629_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/71205/ltcube_262915201_263174401_4FGL_J1148.5+2629_daily_bin91.fits outfile=/scratch/kocevski/71205/expmap_262915201_263174401_4FGL_J1148.5+2629_daily_bin91.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/71205/ltcube_262915201_263174401_4FGL_J1148.5+2629_daily_bin91.fits
.....................!
real 191.29
user 185.66
sys 5.04

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/71205/ft1_filtered_4FGL_J1148.5+2629_daily_bin91.fits scfile=/scratch/kocevski/71205/ft2_4FGL_J1148.5+2629_daily_bin91.fits outfile=/scratch/kocevski/71205/cmap_262915201_263174401_4FGL_J1148.5+2629_daily_bin91.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71205/ft1_filtered_4FGL_J1148.5+2629_daily_bin91.fits scfile=/scratch/kocevski/71205/ft2_4FGL_J1148.5+2629_daily_bin91.fits outfile=/scratch/kocevski/71205/cmap_HighResolution_262915201_263174401_4FGL_J1148.5+2629_daily_bin91.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3035       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1467       1.0000         .10000E-03   10000.    
     3 'norm      '    25.419       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.799       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4446       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2607       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.966       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.225       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8204       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2162       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10435E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17631       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4722       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.5575       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.1749       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.183       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3007       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .46488       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=   4296.801     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     3962 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3010        8.2711        .58435E-05   -.23418E-03
   2  Prefactor     3.1448        3.3978       -.37937E-06    .40365E-05
   3  norm          25.412        16.868       -.13690E-06    .80226E-04
   4  Prefactor     10.795        8.6501       -.19796E-07    .63982E-04
   5  norm          4.4362        13.637       -.36432E-06    .79710E-04
   6  Prefactor     .10000E-03    12.550        .13931E-06** at limit **
   7  Prefactor     .10000E-03    .98088       -.20600E-06** at limit **
   8  Prefactor     6.2491        62.307       -.95485E-07   -.63294E-04
   9  Prefactor     .10000E-03    32.862        .43407E-07** at limit **
  10  Prefactor     10.963        11.858       -.21394E-06    .63069E-04
  11  Prefactor     .10000E-03    2.8619       -.47996E-08** at limit **
  12  Prefactor     62.251        31.192        .13793E-05    .11492E-03
  13  Prefactor     .10000E-03    4.8501        .30081E-07** at limit **
  14  Prefactor     .10000E-03    1.8895       -.24285E-05** at limit **
  15  Prefactor     .10000E-03    12.773       -.21584E-07** at limit **
  16  norm          3.8200        1.7384       -.72276E-07    .59285E-03
  17  Prefactor     1.2165        2.2150        .64084E-07    .11484E-03
  18  Prefactor     .10000E-03    49.688        .11458E-06** at limit **
  19  Prefactor     .10000E-03    .67199        .10525E-07** at limit **
  20  Prefactor     .10000E-03    1.8889        .12526E-06** at limit **
  21  norm          .10000E-03    1.0054        .11179E-07** at limit **
  22  Prefactor     .70143E-01    9.0163       -.16220E-05    .20503E-03
  23  Prefactor     1.4723        1.8519       -.11571E-07    .38007E-04
  24  Prefactor     6.5579        2.7994       -.39608E-07    .14871E-03
  25  Prefactor     .10000E-03    2.3312        .11599E-07** at limit **
  26  norm          1.1748        .35477       -.15798E-07    .30930E-03
  27  norm          .10000E-03    2.4325        .45492E-07** at limit **
  28  Prefactor     18.178        12.363       -.52443E-07    .55594E-04
  29  Normalizat    1.3010        .21714        .25707E-05    .70976E-03
  30  Prefactor     .46496        .22114       -.36402E-05    .30757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.30103
  Prefactor  = 3.14479
  norm       = 25.4122
  Prefactor  = 10.7945
  norm       = 4.43618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.2491
  Prefactor  = 0.0001
  Prefactor  = 10.9628
  Prefactor  = 0.0001
  Prefactor  = 62.2512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.82002
  Prefactor  = 1.21654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.070143
  Prefactor  = 1.47226
  Prefactor  = 6.55791
  Prefactor  = 0.0001
  norm       = 1.17475
  norm       = 0.0001
  Prefactor  = 18.1776
  Normalizat = 1.30103
  Prefactor  = 0.464958
 **********
 **   18 **HESSE 
 **********

 FCN=   4296.801     FROM HESSE     STATUS=OK           596 CALLS     4558 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3010        8.7991        .13519E-02   -1.5405    
   2  Prefactor     3.1448        3.4019        .11810E-03   -1.5353    
   3  norm          25.412        16.888        .79455E-04   -1.4699    
   4  Prefactor     10.795        8.6485        .12192E-03   -1.5051    
   5  norm          4.4362        13.665        .19100E-03   -1.5287    
   6  Prefactor     .10000E-03    12.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .98533        .63300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2491        62.099        .16043E-03   -1.5208    
   9  Prefactor     .10000E-03    33.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.963        11.867        .12098E-03   -1.5046    
  11  Prefactor     .10000E-03    2.8975        .10826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     62.251        31.983        .50868E-04   -1.4128    
  13  Prefactor     .10000E-03    4.8730        .14097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8612        .16233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8200        1.7407        .55012E-04   -1.5317    
  17  Prefactor     1.2165        2.1605        .12758E-03   -1.5487    
  18  Prefactor     .10000E-03    49.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .67431        .52470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.6442        .17497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.0080        .64158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .70143E-01    19.297        .58382E-01   -1.5655    
  23  Prefactor     1.4723        1.8348        .96896E-04   -1.5465    
  24  Prefactor     6.5579        2.8016        .68761E-04   -1.5196    
  25  Prefactor     .10000E-03    2.3407        .97735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.1748        .35566        .20618E-04   -1.5491    
  27  norm          .10000E-03    2.4588        .99820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     18.178        12.360        .93928E-04   -1.4855    
  29  Normalizat    1.3010        .25304        .21489E-03   -.83536    
  30  Prefactor     .46496        .24515        .36261E-03   -1.1361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78504e-09
Minuit parameter uncertainties:
  1  8.80403
  2  3.40207
  3  16.8908
  4  8.64955
  5  13.6748
  6  4.04821e-05
  7  9.59201e-06
  8  39.4515
  9  8.44653e-06
  10  11.8697
  11  2.54913e-06
  12  31.9919
  13  2.43035e-06
  14  7.07178e-05
  15  3.18055e-05
  16  1.74075
  17  2.16067
  18  2.94542e-05
  19  2.90111e-07
  20  1.36528e-06
  21  6.04913e-07
  22  2.32594
  23  1.83486
  24  2.80162
  25  7.05211e-07
  26  0.355656
  27  2.84551e-06
  28  12.3618
  29  0.253283
  30  0.245712
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  6.225e+01  3.199e+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:  4.650e-01  2.457e-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.301e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.00
Ra Dec: 177.141 26.499
Photon Index (Fixed Index): 2.92 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 7.53e-08
Energy Flux (Fixed Index): 3.05e-05 +/- 1.57e-05

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) = 4295.85638889
delta logL = 0.944384496279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4295.85259786
delta logL = 0.94817553196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.742       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0306       1.0000          .0000       10.000    
     3 'Normalizat'    1.2271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52909       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=   4295.853     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      297 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.740        38.016        .71120E-04    .12772E-03
   2  Index         4.0302        1.1838        .50995E-02    .40465E-04
   3  Normalizat    1.2272        .24348        .21991E-03   -.73637E-04
   4  Prefactor     .52901        .25037        .34192E-03   -.42060E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7395
  Index      = 4.03024
  Normalizat = 1.22721
  Prefactor  = 0.529013
 **********
 **   18 **HESSE 
 **********

 FCN=   4295.853     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.740        32.218        .28448E-05   -1.4581    
   2  Index         4.0302        1.0050        .20398E-03   -.19519    
   3  Normalizat    1.2272        .24366        .43982E-04   -.85766    
   4  Prefactor     .52901        .25016        .13677E-04   -1.1066    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31581e-11
Minuit parameter uncertainties:
  1  32.236
  2  1.01219
  3  0.243891
  4  0.250686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71205': 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) = 4295.85259734
delta logL = 0.948176047079

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  3.174e+01  3.224e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  4.030e+00  1.012e+00  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:  5.290e-01  2.507e-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.227e+00  2.439e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.23
Ra Dec: 177.141 26.499
Photon Index (Free Index): 4.03 +/- 1.01
Photon Flux (Free Index): 2.02e-07 +/- 9.04e-08
Energy Flux (Free Index): 3.00e-05 +/- 1.36e-05

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/71205/cmap_HighResolution_262915201_263174401_4FGL_J1148.5+2629_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='3.00e-05', photon_flux_error='7.53e-08', dlogl='9.48e-01', energy_flux='3.05e-05', photon_flux2='2.02e-07', job_status='DONE', time_completed='2021-09-04 11:29:52.908480', photon_index_error2='1.01', photon_index2='4.03', ts='6.00', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='1.30', time_epoch_completed='1630780192.91', return_code='0', job_id='71205', GAL2='0.53', EG2='1.23', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='9.04e-08', ts2='8.23', photon_index='2.92' WHERE bin_id='91' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:29:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 71205: <4FGL_J1148.5+2629_daily_bin91> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin91> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:16:56 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:16:57 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:57 2021
Terminated at Sat Sep  4 11:29:53 2021
Results reported at Sat Sep  4 11:29:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin91 177.141 26.4986 262915201 263174401 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 :                                   641.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            777 sec.

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

