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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin658
RA = 176.74, Dec = 39.9775
tmin = 409881601, tmax = 410140801
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='34176', job_status='RUN', time_executed='2021-09-04 09:39:27.373413', time_epoch_executed='1630773567.37' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34176

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34176/ft1_4FGL_J1146.9+3958_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34176/ft2_4FGL_J1146.9+3958_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34176/ft1_4FGL_J1146.9+3958_daily_bin658.fits outfile=/scratch/kocevski/34176/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin658.fits ra=176.74 dec=39.9775 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.18
user 5.91
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/34176/ft2_4FGL_J1146.9+3958_daily_bin658.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/34176/ft2_4FGL_J1146.9+3958_daily_bin658.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/34176/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/34176/ft1_filtered_4FGL_J1146.9+3958_daily_bin658.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34176/ft1_filtered_4FGL_J1146.9+3958_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/34176/ft2_4FGL_J1146.9+3958_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/34176/ltcube_409881601_410140801_4FGL_J1146.9+3958_daily_bin658.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/34176/ft2_4FGL_J1146.9+3958_daily_bin658.fits
.....................!
real 11.83
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34176/ft1_filtered_4FGL_J1146.9+3958_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/34176/ft2_4FGL_J1146.9+3958_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/34176/ltcube_409881601_410140801_4FGL_J1146.9+3958_daily_bin658.fits outfile=/scratch/kocevski/34176/expmap_409881601_410140801_4FGL_J1146.9+3958_daily_bin658.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/34176/ltcube_409881601_410140801_4FGL_J1146.9+3958_daily_bin658.fits
.....................!
real 190.39
user 185.73
sys 4.32

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1146.9+3958 @ 176.74 39.9775

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/34176/ft1_filtered_4FGL_J1146.9+3958_daily_bin658.fits scfile=/scratch/kocevski/34176/ft2_4FGL_J1146.9+3958_daily_bin658.fits outfile=/scratch/kocevski/34176/cmap_409881601_410140801_4FGL_J1146.9+3958_daily_bin658.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=176.74 yref=39.9775 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/34176/ft1_filtered_4FGL_J1146.9+3958_daily_bin658.fits scfile=/scratch/kocevski/34176/ft2_4FGL_J1146.9+3958_daily_bin658.fits outfile=/scratch/kocevski/34176/cmap_HighResolution_409881601_410140801_4FGL_J1146.9+3958_daily_bin658.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=176.74 yref=39.9775 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/34176/ft1_filtered_4FGL_J1146.9+3958_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/34176/ft2_4FGL_J1146.9+3958_daily_bin658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/34176/Model_4FGL_J1146.9+3958_daily_bin658.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/34176/ft1_filtered_4FGL_J1146.9+3958_daily_bin658.fits.....................!
real 49.86
user 48.32
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/34176/ft1_filtered_4FGL_J1146.9+3958_daily_bin658.fits', '/scratch/kocevski/34176/ft2_4FGL_J1146.9+3958_daily_bin658.fits', expMap='/scratch/kocevski/34176/expmap_409881601_410140801_4FGL_J1146.9+3958_daily_bin658.fits', expCube='/scratch/kocevski/34176/ltcube_409881601_410140801_4FGL_J1146.9+3958_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/34176/Model_4FGL_J1146.9+3958_daily_bin658.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1146.9+3958'

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  2.705e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.323e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  6.653e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/34176/ft1_filtered_4FGL_J1146.9+3958_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/34176/ft2_4FGL_J1146.9+3958_daily_bin658.fits
Exposure map: /scratch/kocevski/34176/expmap_409881601_410140801_4FGL_J1146.9+3958_daily_bin658.fits
Exposure cube: /scratch/kocevski/34176/ltcube_409881601_410140801_4FGL_J1146.9+3958_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/34176/Model_4FGL_J1146.9+3958_daily_bin658.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) = 5491.30890934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7324       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.902       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    20.778       1.0000         .10000E-03   10000.    
     7 'norm      '    1.2438       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9323       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10842E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.358       1.0000         .10000E-03   10000.    
    11 'norm      '    3.1938       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.161       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6656       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.638       1.0000         .10000E-03   10000.    
    15 'norm      '    13.035       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0671       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.831       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3130       1.0000         .10000E-03   10000.    
    23 'norm      '    9.9236       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.699       1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0244       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .76921       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5491.286     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3469 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.717        .68518E-04** at limit **
   2  norm          1.7324        .39223        .67967E-10    .23501E-03
   3  Prefactor     10.904        17.531        .10203E-05   -.93963E-07
   4  Prefactor     .10000E-03    7.7808       -.27802E-05** at limit **
   5  Prefactor     .10000E-03    54.434       -.16640E-04** at limit **
   6  norm          20.779        16.239       -.39424E-06    .33808E-04
   7  norm          1.2149        190.74       -.11488E-03    .21553E-04
   8  Prefactor     1.9321        3.3151        .55591E-07    .40004E-04
   9  Prefactor     .10000E-03    57.142       -.43039E-04** at limit **
  10  Prefactor     16.374        29.302        .17238E-04    .13511E-04
  11  norm          3.1936        2.5973       -.29063E-06    .21634E-03
  12  Prefactor     10.161        18.792       -.11140E-04   -.11740E-03
  13  Prefactor     2.6652        6.2913       -.30948E-05   -.76596E-03
  14  Prefactor     20.666        31.659        .34498E-04    .40337E-05
  15  norm          13.034        2.1665       -.64588E-06    .57460E-03
  16  norm          .10000E-03    6.3413        .59625E-06** at limit **
  17  Prefactor     3.0860        53.138        .38453E-04   -.10311E-04
  18  Prefactor     .10000E-03    1.2735       -.83030E-07** at limit **
  19  Prefactor     .10000E-03    25.442       -.12720E-04** at limit **
  20  Prefactor     12.840        18.795        .40989E-05   -.30788E-04
  21  norm          .10000E-03    .50690       -.79744E-07** at limit **
  22  Prefactor     8.3135        26.186       -.46267E-05   -.79511E-04
  23  norm          9.9238        4.6257       -.89330E-08   -.62591E-04
  24  Prefactor     15.700        9.4538        .14479E-06   -.71701E-04
  25  norm          .10000E-03    4.1758        .54860E-07** at limit **
  26  Prefactor     .10000E-03    8.8715        .31767E-05** at limit **
  27  Normalizat    1.0243        .18773       -.58606E-05    .29052E-03
  28  Prefactor     .76931        .21294        .42998E-05   -.11032E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.73238
  Prefactor  = 10.904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.7787
  norm       = 1.21487
  Prefactor  = 1.93213
  Prefactor  = 0.0001
  Prefactor  = 16.3735
  norm       = 3.19363
  Prefactor  = 10.1612
  Prefactor  = 2.66524
  Prefactor  = 20.6663
  norm       = 13.0345
  norm       = 0.0001
  Prefactor  = 3.08596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8398
  norm       = 0.0001
  Prefactor  = 8.31353
  norm       = 9.92377
  Prefactor  = 15.7
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02435
  Prefactor  = 0.769312
 **********
 **   18 **HESSE 
 **********

 FCN=   5491.286     FROM HESSE     STATUS=OK           523 CALLS     3992 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7324        .39333        .20768E-04   -1.5445    
   3  Prefactor     10.904        17.539        .12134E-03   -1.5047    
   4  Prefactor     .10000E-03    7.7944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    54.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.779        16.197        .87869E-04   -1.4796    
   7  norm          1.2149        198.34        .40172E-02   -1.5488    
   8  Prefactor     1.9321        3.2299        .15270E-03   -1.5430    
   9  Prefactor     .10000E-03    57.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.374        29.126        .99027E-04   -1.4898    
  11  norm          3.1936        2.5733        .98803E-04   -1.5351    
  12  Prefactor     10.161        18.677        .12570E-03   -1.5070    
  13  Prefactor     2.6652        6.1988        .24963E-03   -1.5381    
  14  Prefactor     20.666        31.649        .88167E-04   -1.4798    
  15  norm          13.034        2.1718        .40943E-04   -1.4986    
  16  norm          .10000E-03    6.3672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0860        52.449        .23162E-03   -1.5357    
  18  Prefactor     .10000E-03    1.2800        .81499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.840        18.790        .11182E-03   -1.4991    
  21  norm          .10000E-03    .52094        .10295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.3135        26.079        .13904E-03   -1.5131    
  23  norm          9.9238        4.6256        .10571E-03   -1.5078    
  24  Prefactor     15.700        9.4559        .10108E-03   -1.4915    
  25  norm          .10000E-03    4.1969        .14788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.8819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0243        .21817        .23944E-03   -.92219    
  28  Prefactor     .76931        .24563        .32454E-03   -1.0087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1683e-09
Minuit parameter uncertainties:
  1  1.62035e-05
  2  0.393331
  3  17.5468
  4  9.3818e-07
  5  0.000117431
  6  16.2004
  7  31.1494
  8  3.23017
  9  9.5661e-05
  10  29.1508
  11  2.57336
  12  18.6874
  13  6.20031
  14  31.6745
  15  2.17185
  16  4.79682e-06
  17  25.4702
  18  6.08398e-06
  19  1.09736e-05
  20  18.7988
  21  5.49745e-06
  22  26.1151
  23  4.6258
  24  9.45681
  25  3.37942e-06
  26  5.81708e-06
  27  0.218361
  28  0.245983
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.303e+01  2.172e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.323e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  6.653e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  7.693e-01  2.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.024e+00  2.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 127.25
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.36e-07 +/- 7.25e-08
Energy Flux (Fixed Index): 1.45e-04 +/- 2.42e-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) = 5491.27780003
delta logL = 0.00793095152221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5491.27556916
delta logL = 0.0101618243762

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.177       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2969       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76421       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5491.276     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      195 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.177        2.9100        .27586E-02    .23512E-03
   2  alpha         2.2969        .22129        .10330        .18383E-04
   3  Normalizat    1.0304        .18057        .42123E-01    .12053E-04
   4  Prefactor     .76424        .21227        .73546E-01    .20310E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.177
  alpha      = 2.29691
  Normalizat = 1.03039
  Prefactor  = 0.764244
 **********
 **   18 **HESSE 
 **********

 FCN=   5491.276     FROM HESSE     STATUS=OK            29 CALLS      224 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.177        2.3395        .41294E-04   -1.4982    
   2  alpha         2.2969        .18009        .45267E-03   -.81326E-01
   3  Normalizat    1.0304        .20882        .23889E-03   -.92019    
   4  Prefactor     .76424        .24415        .32550E-03   -1.0106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17605e-12
Minuit parameter uncertainties:
  1  2.33953
  2  0.180247
  3  0.208988
  4  0.244496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34176': 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) = 5491.27556914
delta logL = 0.0101618447998

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.318e+01  2.340e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.297e+00  1.802e-01  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  6.653e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  7.642e-01  2.445e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  1.030e+00  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 126.26
Ra Dec: 176.740 39.977
Photon Index (Free Index): 2.30 +/- 0.18
Photon Flux (Free Index): 4.30e-07 +/- 7.86e-08
Energy Flux (Free Index): 1.48e-04 +/- 3.02e-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/34176/cmap_HighResolution_409881601_410140801_4FGL_J1146.9+3958_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.36e-07', energy_flux2='1.48e-04', photon_flux_error='7.25e-08', dlogl='1.02e-02', energy_flux='1.45e-04', photon_flux2='4.30e-07', job_status='DONE', time_completed='2021-09-04 09:51:51.403994', photon_index_error2='0.18', photon_index2='2.30', ts='127.25', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='3.02e-05', EG='1.02', time_epoch_completed='1630774311.4', return_code='0', job_id='34176', GAL2='0.76', EG2='1.03', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='7.86e-08', ts2='126.26', photon_index='2.32' WHERE bin_id='658' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:51:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 34176: <4FGL_J1146.9+3958_daily_bin658> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin658> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 09:36:29 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:36:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 09:36:31 2021
Terminated at Sat Sep  4 09:51:52 2021
Results reported at Sat Sep  4 09:51:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin658 176.74 39.9775 409881601 410140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1146.9+3958 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   742.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

