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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin1454
RA = 177.141, Dec = 26.4986
tmin = 616204801, tmax = 616464001
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='81363', job_status='RUN', time_executed='2021-09-04 11:42:01.053918', time_epoch_executed='1630780921.05' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81363

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81363/ft1_4FGL_J1148.5+2629_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81363/ft2_4FGL_J1148.5+2629_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81363/ft1_4FGL_J1148.5+2629_daily_bin1454.fits outfile=/scratch/kocevski/81363/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin1454.fits ra=177.141 dec=26.4986 rad=12.0 tmin=616204801.0 tmax=616464001.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.94
user 3.73
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81363/ft1_filtered_4FGL_J1148.5+2629_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/81363/ft2_4FGL_J1148.5+2629_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/81363/ltcube_616204801_616464001_4FGL_J1148.5+2629_daily_bin1454.fits outfile=/scratch/kocevski/81363/expmap_616204801_616464001_4FGL_J1148.5+2629_daily_bin1454.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/81363/ltcube_616204801_616464001_4FGL_J1148.5+2629_daily_bin1454.fits
.....................!
real 189.78
user 185.18
sys 4.29

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/81363/ft1_filtered_4FGL_J1148.5+2629_daily_bin1454.fits scfile=/scratch/kocevski/81363/ft2_4FGL_J1148.5+2629_daily_bin1454.fits outfile=/scratch/kocevski/81363/cmap_616204801_616464001_4FGL_J1148.5+2629_daily_bin1454.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81363/ft1_filtered_4FGL_J1148.5+2629_daily_bin1454.fits scfile=/scratch/kocevski/81363/ft2_4FGL_J1148.5+2629_daily_bin1454.fits outfile=/scratch/kocevski/81363/cmap_HighResolution_616204801_616464001_4FGL_J1148.5+2629_daily_bin1454.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0064       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11787E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13231E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    51.730       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9081       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.803       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.478       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10465E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20745       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.7384       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .53525E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    7.3368       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1677       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87357       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=   5088.267     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     4561 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8688        .23381E-06** at limit **
   2  Prefactor     3.0068        3.2396        .65697E-07   -.18088E-03
   3  norm          .10000E-03    6.9695       -.44656E-06** at limit **
   4  Prefactor     .10000E-03    6.1985        .13319E-06** at limit **
   5  norm          .10000E-03    6.1693        .45499E-06** at limit **
   6  Prefactor     .10000E-03    13.473       -.23426E-07** at limit **
   7  Prefactor     .10000E-03    1.9270        .11824E-05** at limit **
   8  Prefactor     51.699        52.596       -.38144E-06    .28706E-04
   9  Prefactor     .10000E-03    4.9982        .21150E-06** at limit **
  10  Prefactor     .10000E-03    4.2365       -.86307E-07** at limit **
  11  Prefactor     3.9057        5.4099        .41727E-06   -.23839E-03
  12  Prefactor     16.802        14.627        .35705E-07   -.37288E-04
  13  Prefactor     .10000E-03    2.5077        .36925E-07** at limit **
  14  Prefactor     .10000E-03    .87011        .11857E-06** at limit **
  15  Prefactor     16.482        23.035        .52170E-07   -.29085E-04
  16  norm          .10000E-03    .30962        .66790E-07** at limit **
  17  Prefactor     .10000E-03    1.2319        .82113E-07** at limit **
  18  Prefactor     .10000E-03    31.886        .28499E-06** at limit **
  19  Prefactor     .10000E-03    2.3259        .91811E-06** at limit **
  20  Prefactor     .10000E-03    2.5178       -.71110E-06** at limit **
  21  norm          .10000E-03    2.1986        .10044E-05** at limit **
  22  Prefactor     .22142        77.309       -.70055E-05    .27917E-04
  23  Prefactor     8.7350        3.3821       -.34720E-06   -.14758E-02
  24  Prefactor     .10000E-03    .75305        .11498E-06** at limit **
  25  Prefactor     .10000E-03    1.9912        .85726E-07** at limit **
  26  norm          .53567E-01    .17586       -.10362E-06    .10882E-02
  27  norm          7.3374        4.5985       -.34751E-08    .40838E-05
  28  Prefactor     .10000E-03    3.0481        .12562E-06** at limit **
  29  Normalizat    1.1678        .19039       -.98106E-06   -.22988E-03
  30  Prefactor     .87341        .20574       -.14814E-06   -.17208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.00678
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.6991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.90569
  Prefactor  = 16.8018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4823
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.221416
  Prefactor  = 8.73504
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0535675
  norm       = 7.3374
  Prefactor  = 0.0001
  Normalizat = 1.1678
  Prefactor  = 0.873409
 **********
 **   18 **HESSE 
 **********

 FCN=   5088.267     FROM HESSE     STATUS=OK           588 CALLS     5149 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0068        3.2323        .12754E-03   -1.5361    
   3  norm          .10000E-03    6.9504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.747        .33434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.1835        .17286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    123.36        .47367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.0207        .19486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     51.699        52.881        .55761E-04   -1.4269    
   9  Prefactor     .10000E-03    5.0001        .15571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2421        .14335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9057        5.3854        .18276E-03   -1.5313    
  12  Prefactor     16.802        14.637        .97708E-04   -1.4888    
  13  Prefactor     .10000E-03    2.5129        .11032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .90620        .12996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.482        23.047        .98667E-04   -1.4896    
  16  norm          .10000E-03    .31630        .38773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.2429        .77315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6021        .19161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9537        .20092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.3461        .19294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .22142        77.577        .38612E-02   -1.5614    
  23  Prefactor     8.7350        3.3130        .76760E-04   -1.5117    
  24  Prefactor     .10000E-03    .76746        .60455E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.0063        .98249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .53567E-01    .19842        .49436E-03   -1.5662    
  27  norm          7.3374        4.5894        .11646E-03   -1.5166    
  28  Prefactor     .10000E-03    3.0520        .12164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1678        .21654        .21867E-03   -.87604    
  30  Prefactor     .87341        .23603        .27939E-03   -.97077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43062e-09
Minuit parameter uncertainties:
  1  3.23933e-05
  2  3.23244
  3  6.9794e-05
  4  2.49795e-05
  5  3.37409e-05
  6  9.14377e-05
  7  4.47282e-05
  8  52.9291
  9  1.46291e-05
  10  1.24047e-05
  11  5.3861
  12  14.6405
  13  1.02377e-06
  14  4.42735e-07
  15  23.0592
  16  5.47564e-08
  17  2.75062e-07
  18  3.06652e-05
  19  0.000142456
  20  0.000118301
  21  2.7609e-05
  22  8.29794
  23  3.3131
  24  4.84394e-07
  25  4.34441e-07
  26  0.198422
  27  4.58966
  28  2.35079e-06
  29  0.216704
  30  0.236305
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.680e+01  1.464e+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:  8.734e-01  2.363e-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.168e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.05
Ra Dec: 177.141 26.499
Photon Index (Fixed Index): 2.92 +/- 0.00
Photon Flux (Fixed Index): 3.96e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 8.23e-06 +/- 7.17e-06

TS (Fixed Index): 3.05
Ra Dec: 177.141 26.499
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81363/likelihoodResults_616204801_616464001_4FGL_J1148.5+2629_daily_bin1454.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) = 5087.27305474
delta logL = 0.993467375777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5087.26756639
delta logL = 0.998955723256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.061       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8605       1.0000          .0000       10.000    
     3 'Normalizat'    1.1986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84879       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=   5087.268     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.057        17.490       -.44293E-05   -.14083E-03
   2  Index         1.8592        .66480       -.27866E-04    .23459E-04
   3  Normalizat    1.1985        .17894        .89477E-06    .76949E-04
   4  Prefactor     .84873        .20076       -.39488E-06    .88203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0567
  Index      = 1.85917
  Normalizat = 1.19851
  Prefactor  = 0.848731
 **********
 **   18 **HESSE 
 **********

 FCN=   5087.268     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.057        17.001        .10320E-03   -1.4932    
   2  Index         1.8592        .64676        .75266E-02   -.67920    
   3  Normalizat    1.1985        .20690        .21619E-03   -.86649    
   4  Prefactor     .84873        .23209        .28303E-03   -.97956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38294e-11
Minuit parameter uncertainties:
  1  17.0064
  2  0.649774
  3  0.207042
  4  0.232362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81363': 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) = 5087.26756266
delta logL = 0.998959458293

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.506e+01  1.701e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  1.859e+00  6.498e-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:  8.487e-01  2.324e-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.199e+00  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 177.141 26.499
Photon Index (Free Index): 1.86 +/- 0.65
Photon Flux (Free Index): 1.98e-08 +/- 2.36e-08
Energy Flux (Free Index): 1.99e-05 +/- 2.76e-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/81363/cmap_HighResolution_616204801_616464001_4FGL_J1148.5+2629_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.75e-03', comment='SUCCESS', photon_flux='3.96e-08', energy_flux2='1.99e-05', photon_flux_error='3.45e-08', dlogl='9.99e-01', energy_flux='8.23e-06', photon_flux2='1.98e-08', job_status='DONE', time_completed='2021-09-04 11:56:38.718069', photon_index_error2='0.65', photon_index2='1.86', ts='3.05', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='2.76e-05', EG='1.17', time_epoch_completed='1630781798.72', return_code='0', job_id='81363', GAL2='0.85', EG2='1.20', return_code2='0', energy_flux_error='7.17e-06', photon_flux_error2='2.36e-08', ts2='5.04', photon_index='2.92' WHERE bin_id='1454' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:56:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 81363: <4FGL_J1148.5+2629_daily_bin1454> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin1454> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:41:51 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:41:52 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:41:52 2021
Terminated at Sat Sep  4 11:56:39 2021
Results reported at Sat Sep  4 11:56:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin1454 177.141 26.4986 616204801 616464001 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 :                                   849.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

