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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin993
RA = 176.74, Dec = 39.9775
tmin = 496713601, tmax = 496972801
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='37016', job_status='RUN', time_executed='2021-09-04 09:50:08.846944', time_epoch_executed='1630774208.85' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='993'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/37016

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/37016/ft1_4FGL_J1146.9+3958_daily_bin993.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/37016/ft2_4FGL_J1146.9+3958_daily_bin993.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/37016/ft1_4FGL_J1146.9+3958_daily_bin993.fits outfile=/scratch/kocevski/37016/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin993.fits ra=176.74 dec=39.9775 rad=12.0 tmin=496713601.0 tmax=496972801.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 5.03
user 4.79
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/37016/ft2_4FGL_J1146.9+3958_daily_bin993.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/37016/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin993.fits evtable="EVENTS" outfile="/scratch/kocevski/37016/ft1_filtered_4FGL_J1146.9+3958_daily_bin993.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/37016/ft1_filtered_4FGL_J1146.9+3958_daily_bin993.fits" evtable="EVENTS" scfile=/scratch/kocevski/37016/ft2_4FGL_J1146.9+3958_daily_bin993.fits sctable="SC_DATA" outfile=/scratch/kocevski/37016/ltcube_496713601_496972801_4FGL_J1146.9+3958_daily_bin993.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/37016/ft2_4FGL_J1146.9+3958_daily_bin993.fits
.....................!
real 12.46
user 12.13
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/37016/ft1_filtered_4FGL_J1146.9+3958_daily_bin993.fits evtable="EVENTS" scfile=/scratch/kocevski/37016/ft2_4FGL_J1146.9+3958_daily_bin993.fits sctable="SC_DATA" expcube=/scratch/kocevski/37016/ltcube_496713601_496972801_4FGL_J1146.9+3958_daily_bin993.fits outfile=/scratch/kocevski/37016/expmap_496713601_496972801_4FGL_J1146.9+3958_daily_bin993.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/37016/ltcube_496713601_496972801_4FGL_J1146.9+3958_daily_bin993.fits
.....................!
real 189.88
user 185.30
sys 4.23

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/37016/ft1_filtered_4FGL_J1146.9+3958_daily_bin993.fits scfile=/scratch/kocevski/37016/ft2_4FGL_J1146.9+3958_daily_bin993.fits outfile=/scratch/kocevski/37016/cmap_496713601_496972801_4FGL_J1146.9+3958_daily_bin993.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/37016/ft1_filtered_4FGL_J1146.9+3958_daily_bin993.fits scfile=/scratch/kocevski/37016/ft2_4FGL_J1146.9+3958_daily_bin993.fits outfile=/scratch/kocevski/37016/cmap_HighResolution_496713601_496972801_4FGL_J1146.9+3958_daily_bin993.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/37016/ft1_filtered_4FGL_J1146.9+3958_daily_bin993.fits', '/scratch/kocevski/37016/ft2_4FGL_J1146.9+3958_daily_bin993.fits', expMap='/scratch/kocevski/37016/expmap_496713601_496972801_4FGL_J1146.9+3958_daily_bin993.fits', expCube='/scratch/kocevski/37016/ltcube_496713601_496972801_4FGL_J1146.9+3958_daily_bin993.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/37016/Model_4FGL_J1146.9+3958_daily_bin993.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/37016/ft1_filtered_4FGL_J1146.9+3958_daily_bin993.fits
Spacecraft file(s): /scratch/kocevski/37016/ft2_4FGL_J1146.9+3958_daily_bin993.fits
Exposure map: /scratch/kocevski/37016/expmap_496713601_496972801_4FGL_J1146.9+3958_daily_bin993.fits
Exposure cube: /scratch/kocevski/37016/ltcube_496713601_496972801_4FGL_J1146.9+3958_daily_bin993.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/37016/Model_4FGL_J1146.9+3958_daily_bin993.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) = 4178.26776791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    127.92       1.0000         .10000E-03   10000.    
     2 'norm      '    .31166       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.689       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8213       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14947E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3834       1.0000         .10000E-03   10000.    
    16 'norm      '    .10422E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2472       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    54.539       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3906       1.0000         .10000E-03   10000.    
    21 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.912       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.0953       1.0000         .10000E-03   10000.    
    25 'norm      '    6.7025       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .88085       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98814       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=   4178.251     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3540 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     128.16        109.56        .41868E-06   -.16586E-03
   2  norm          .31175        .27792       -.85617E-07   -.13107E-02
   3  Prefactor     29.692        15.634        .21384E-06    .17319E-03
   4  Prefactor     .10000E-03    11.544       -.45051E-08** at limit **
   5  Prefactor     .10000E-03    40.502       -.84924E-07** at limit **
   6  norm          .10000E-03    3.9070       -.27001E-07** at limit **
   7  norm          .10000E-03    20.261       -.86741E-08** at limit **
   8  Prefactor     .10000E-03    1.2607        .91930E-07** at limit **
   9  Prefactor     .10000E-03    22.249        .15450E-06** at limit **
  10  Prefactor     .10000E-03    8.4907       -.16908E-07** at limit **
  11  norm          2.8239        3.3617       -.35332E-06   -.21150E-03
  12  Prefactor     .10000E-03    5.4540        .25140E-07** at limit **
  13  Prefactor     .10000E-03    6.1732        .30847E-06** at limit **
  14  Prefactor     .10059E-03    579.54        .57121E-04** at limit **
  15  norm          1.3826        1.1033        .55961E-06    .25295E-02
  16  norm          .10000E-03    4.4045       -.15814E-06** at limit **
  17  Prefactor     8.2675        25.197        .86684E-08    .12074E-03
  18  Prefactor     .10000E-03    1.5749       -.74203E-07** at limit **
  19  Prefactor     54.759        58.522        .63626E-06    .11142E-03
  20  Prefactor     8.3932        15.461       -.32798E-06    .17281E-04
  21  norm          .10000E-03    .43864        .30037E-07** at limit **
  22  Prefactor     .10000E-03    20.273        .15081E-06** at limit **
  23  norm          11.914        4.9610       -.31940E-07   -.11664E-04
  24  Prefactor     9.0966        9.1615       -.12875E-06    .37411E-04
  25  norm          6.7084        9.3695       -.20220E-06   -.21405E-05
  26  Prefactor     .10000E-03    17.186       -.10550E-06** at limit **
  27  Normalizat    .88031        .20165       -.79889E-06    .16796E-03
  28  Prefactor     .98869        .22638        .29717E-05    .66537E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 128.159
  norm       = 0.311749
  Prefactor  = 29.692
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.82394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100595
  norm       = 1.38257
  norm       = 0.0001
  Prefactor  = 8.26751
  Prefactor  = 0.0001
  Prefactor  = 54.7587
  Prefactor  = 8.39319
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9139
  Prefactor  = 9.09663
  norm       = 6.7084
  Prefactor  = 0.0001
  Normalizat = 0.880312
  Prefactor  = 0.988691
 **********
 **   18 **HESSE 
 **********

 FCN=   4178.251     FROM HESSE     STATUS=OK           517 CALLS     4057 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     128.16        109.41        .17798E-03   -1.3439    
   2  norm          .31175        .26946        .30612E-03   -1.5596    
   3  Prefactor     29.692        15.621        .73531E-04   -1.4618    
   4  Prefactor     .10000E-03    11.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.9135        .12479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    20.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2852        .71057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.5057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8239        3.5156        .60524E-03   -1.5372    
  12  Prefactor     .10000E-03    5.4618        .14743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.2991        .15678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10059E-03    75.424        .12676       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3826        1.1501        .55653E-04   -1.5473    
  16  norm          .10000E-03    4.4084        .13252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.2675        25.292        .13960E-03   -1.5133    
  18  Prefactor     .10000E-03    1.6015        .79096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     54.759        58.662        .54314E-04   -1.4227    
  20  Prefactor     8.3932        15.439        .13840E-03   -1.5128    
  21  norm          .10000E-03    .44544        .41764E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.914        4.9609        .90318E-04   -1.5017    
  24  Prefactor     9.0966        9.1617        .13290E-03   -1.5105    
  25  norm          6.7084        9.3628        .15499E-03   -1.5190    
  26  Prefactor     .10000E-03    17.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .88031        .23080        .22890E-03   -.97155    
  28  Prefactor     .98869        .26512        .26450E-03   -.93107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58345e-09
Minuit parameter uncertainties:
  1  109.586
  2  0.269458
  3  15.6235
  4  2.08354e-05
  5  2.14515e-05
  6  4.28126e-06
  7  6.69417e-05
  8  1.99262e-05
  9  2.92804e-05
  10  1.85636e-05
  11  3.51582
  12  6.35571e-06
  13  2.92331e-05
  14  0.0134149
  15  1.15014
  16  2.25939e-05
  17  25.3253
  18  1.11141e-05
  19  58.7239
  20  15.4463
  21  1.52419e-06
  22  5.72386e-05
  23  4.96103
  24  9.16312
  25  9.36485
  26  8.46264e-05
  27  0.231062
  28  0.265471
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.383e+00  1.150e+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:  9.887e-01  2.655e-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:  8.803e-01  2.311e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.66
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.28e-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) = 4175.98704444
delta logL = 2.26386800008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4175.98026584
delta logL = 2.27064659755

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10559       1.0000         .10000E-03   10000.    
     2 'alpha     '    .59895       1.0000          .0000       5.0000    
     3 'Normalizat'    .92055       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97066       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=   4175.980     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      215 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10569        .12681        .45783E-02   -.78426E-03
   2  alpha         .59822        .39708        .26475       -.19222E-04
   3  Normalizat    .92074        .18242        .45164E-01    .10031E-04
   4  Prefactor     .97046        .22328        .45899E-01    .93969E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.105693
  alpha      = 0.598225
  Normalizat = 0.920737
  Prefactor  = 0.970462
 **********
 **   18 **HESSE 
 **********

 FCN=   4175.980     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10569        .29042        .18684E-03   -1.5643    
   2  alpha         .59822        .79970        .11836E-02   -.86441    
   3  Normalizat    .92074        .21251        .22449E-03   -.95735    
   4  Prefactor     .97046        .26017        .26699E-03   -.93721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40416e-12
Minuit parameter uncertainties:
  1  0.290429
  2  0.836222
  3  0.212708
  4  0.260506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/37016': 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) = 4175.98025985
delta logL = 2.27065259661

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.057e-01  2.904e-01  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  5.982e-01  8.362e-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:  9.705e-01  2.605e-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:  9.207e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.18
Ra Dec: 176.740 39.977
Photon Index (Free Index): 0.60 +/- 0.84
Photon Flux (Free Index): 5.29e-09 +/- 6.22e-09
Energy Flux (Free Index): 8.80e-05 +/- 1.20e-04

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/37016/cmap_HighResolution_496713601_496972801_4FGL_J1146.9+3958_daily_bin993.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='8.80e-05', photon_flux_error='3.84e-08', dlogl='2.27e+00', energy_flux='1.54e-05', photon_flux2='5.29e-09', job_status='DONE', time_completed='2021-09-04 10:00:44.765873', photon_index_error2='0.84', photon_index2='0.60', ts='6.66', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.20e-04', EG='0.88', time_epoch_completed='1630774844.77', return_code='0', job_id='37016', GAL2='0.97', EG2='0.92', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='6.22e-09', ts2='11.18', photon_index='2.32' WHERE bin_id='993' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 10:00:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 37016: <4FGL_J1146.9+3958_daily_bin993> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin993> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 09:46:02 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:46:03 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:46:03 2021
Terminated at Sat Sep  4 10:00:45 2021
Results reported at Sat Sep  4 10:00:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin993 176.74 39.9775 496713601 496972801 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 :                                   634.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            883 sec.

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

