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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin654
RA = 176.74, Dec = 39.9775
tmin = 408844801, tmax = 409104001
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='34170', job_status='RUN', time_executed='2021-09-04 09:40:18.750966', time_epoch_executed='1630773618.75' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/34170

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/34170/ft1_4FGL_J1146.9+3958_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/34170/ft2_4FGL_J1146.9+3958_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/34170/ft1_4FGL_J1146.9+3958_daily_bin654.fits outfile=/scratch/kocevski/34170/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin654.fits ra=176.74 dec=39.9775 rad=12.0 tmin=408844801.0 tmax=409104001.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 4.32
user 4.08
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/34170/ft1_filtered_4FGL_J1146.9+3958_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/34170/ft2_4FGL_J1146.9+3958_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/34170/ltcube_408844801_409104001_4FGL_J1146.9+3958_daily_bin654.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/34170/ft2_4FGL_J1146.9+3958_daily_bin654.fits
.....................!
real 11.63
user 11.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/34170/ft1_filtered_4FGL_J1146.9+3958_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/34170/ft2_4FGL_J1146.9+3958_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/34170/ltcube_408844801_409104001_4FGL_J1146.9+3958_daily_bin654.fits outfile=/scratch/kocevski/34170/expmap_408844801_409104001_4FGL_J1146.9+3958_daily_bin654.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/34170/ltcube_408844801_409104001_4FGL_J1146.9+3958_daily_bin654.fits
.....................!
real 190.21
user 185.49
sys 4.34

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/34170/ft1_filtered_4FGL_J1146.9+3958_daily_bin654.fits scfile=/scratch/kocevski/34170/ft2_4FGL_J1146.9+3958_daily_bin654.fits outfile=/scratch/kocevski/34170/cmap_408844801_409104001_4FGL_J1146.9+3958_daily_bin654.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.57
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/34170/ft1_filtered_4FGL_J1146.9+3958_daily_bin654.fits scfile=/scratch/kocevski/34170/ft2_4FGL_J1146.9+3958_daily_bin654.fits outfile=/scratch/kocevski/34170/cmap_HighResolution_408844801_409104001_4FGL_J1146.9+3958_daily_bin654.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.56
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7408       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.758       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    325.05       1.0000         .10000E-03   10000.    
     6 'norm      '    .10259E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2231       1.0000         .10000E-03   10000.    
    11 'norm      '    .10230E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10996E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    67.998       1.0000         .10000E-03   10000.    
    15 'norm      '    10.302       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11806E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7459       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10745E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.957       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.881       1.0000         .10000E-03   10000.    
    25 'norm      '    28.548       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .57737       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.6233       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=   1921.305     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3984 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    86.294        .86342E-05** at limit **
   2  norm          2.7408        .83039        .41936E-07    .68972E-03
   3  Prefactor     18.746        36.763       -.13108E-05    .66098E-04
   4  Prefactor     .10000E-03    24.103       -.19352E-04** at limit **
   5  Prefactor     325.04        578.93       -.62514E-05    .72801E-06
   6  norm          .10000E-03    17.758       -.15038E-05** at limit **
   7  norm          .10000E-03    284.68       -.37164E-04** at limit **
   8  Prefactor     .10000E-03    2.2448       -.95169E-07** at limit **
   9  Prefactor     .10000E-03    32.252        .18840E-04** at limit **
  10  Prefactor     9.1946        27.712        .90756E-05    .57044E-04
  11  norm          .10000E-03    3.3293       -.21943E-06** at limit **
  12  Prefactor     .10000E-03    52.408       -.77548E-05** at limit **
  13  Prefactor     .10000E-03    10.706       -.81629E-07** at limit **
  14  Prefactor     68.042        136.57        .47021E-04   -.22005E-04
  15  norm          10.300        5.1950       -.21572E-05   -.21977E-03
  16  norm          .10000E-03    22.234        .16255E-04** at limit **
  17  Prefactor     .10000E-03    29.785       -.94841E-05** at limit **
  18  Prefactor     .10000E-03    6.7060       -.14987E-06** at limit **
  19  Prefactor     .10000E-03    198.58        .16567E-03** at limit **
  20  Prefactor     .10000E-03    50.758        .62813E-05** at limit **
  21  norm          1.7457        1.7500       -.37321E-07    .66360E-03
  22  Prefactor     .10018E-03    381.76       -.28516E-03** at limit **
  23  norm          11.957        7.3131        .35387E-05    .41312E-03
  24  Prefactor     18.872        21.667        .20552E-05    .41732E-03
  25  norm          28.538        52.151       -.69339E-05    .45029E-05
  26  Prefactor     .10000E-03    77.027       -.27422E-04** at limit **
  27  Normalizat    .57763        .39221       -.40676E-05    .31754E-03
  28  Prefactor     1.6230        .45151       -.71090E-06    .40064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.74078
  Prefactor  = 18.7459
  Prefactor  = 0.0001
  Prefactor  = 325.037
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.19456
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.0423
  norm       = 10.2997
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74571
  Prefactor  = 0.000100183
  norm       = 11.9566
  Prefactor  = 18.8722
  norm       = 28.5382
  Prefactor  = 0.0001
  Normalizat = 0.577632
  Prefactor  = 1.62296
 **********
 **   18 **HESSE 
 **********

 FCN=   1921.305     FROM HESSE     STATUS=OK           501 CALLS     4485 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7408        .83594        .20270E-04   -1.5377    
   3  Prefactor     18.746        36.909        .92477E-04   -1.4842    
   4  Prefactor     .10000E-03    24.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     325.04        580.34        .11278E-03   -1.2082    
   6  norm          .10000E-03    17.790        .18035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    284.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2522        .64115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1946        27.670        .13197E-03   -1.5101    
  11  norm          .10000E-03    3.3837        .78061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    53.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.805        .13996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     68.042        137.19        .48675E-04   -1.4056    
  15  norm          10.300        5.2285        .60181E-04   -1.5066    
  16  norm          .10000E-03    22.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.7085        .11087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    199.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    50.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7457        1.7434        .55572E-04   -1.5444    
  22  Prefactor     .10018E-03    385.34        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.957        7.3168        .89499E-04   -1.5016    
  24  Prefactor     18.872        21.664        .92174E-04   -1.4839    
  25  norm          28.538        52.155        .74982E-04   -1.4639    
  26  Prefactor     .10000E-03    77.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .57763        .44796        .39034E-03   -1.0894    
  28  Prefactor     1.6230        .52633        .28875E-03   -.74152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71202e-09
Minuit parameter uncertainties:
  1  5.09214e-07
  2  0.835946
  3  36.954
  4  1.80341e-05
  5  591.229
  6  2.55124e-05
  7  8.61859e-05
  8  2.33956e-06
  9  1.46936e-05
  10  27.7084
  11  3.63697e-05
  12  0.000300141
  13  5.50594e-06
  14  137.836
  15  5.22877
  16  1.20882e-05
  17  7.21643e-05
  18  3.69229e-06
  19  0.000106213
  20  2.09767e-05
  21  1.74346
  22  0.0169199
  23  7.3173
  24  21.6727
  25  52.2387
  26  6.94917e-05
  27  0.450811
  28  0.528133
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.030e+01  5.229e+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:  1.623e+00  5.281e-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:  5.776e-01  4.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.94
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.44e-07 +/- 1.75e-07
Energy Flux (Fixed Index): 1.15e-04 +/- 5.83e-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) = 1921.27736824
delta logL = 0.0271949599894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1921.26989126
delta logL = 0.0346719352717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.7561       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4637       1.0000          .0000       5.0000    
     3 'Normalizat'    .55158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6491       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=   1921.270     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.7479        20.128        .32074E-02    .11258E-02
   2  alpha         2.4654        1.9009        .18095        .15003E-03
   3  Normalizat    .55190        .44906        .89963E-01    .13996E-03
   4  Prefactor     1.6488        .55443        .64920E-01    .10283E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.74794
  alpha      = 2.46542
  Normalizat = 0.551897
  Prefactor  = 1.64882
 **********
 **   18 **HESSE 
 **********

 FCN=   1921.270     FROM HESSE     STATUS=OK            29 CALLS      231 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.7479        5.1467        .58405E-04   -1.5083    
   2  alpha         2.4654        .56528        .77496E-02   -.13832E-01
   3  Normalizat    .55190        .45027        .39870E-03   -1.1007    
   4  Prefactor     1.6488        .53054        .28708E-03   -.73453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81877e-10
Minuit parameter uncertainties:
  1  5.14693
  2  0.570213
  3  0.453299
  4  0.532368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/34170': 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) = 1921.26988561
delta logL = 0.034677590299

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  9.748e+00  5.147e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.465e+00  5.702e-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:  1.649e+00  5.324e-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:  5.519e-01  4.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.00
Ra Dec: 176.740 39.977
Photon Index (Free Index): 2.47 +/- 0.57
Photon Flux (Free Index): 3.72e-07 +/- 1.95e-07
Energy Flux (Free Index): 1.07e-04 +/- 5.53e-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/34170/cmap_HighResolution_408844801_409104001_4FGL_J1146.9+3958_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.44e-07', energy_flux2='1.07e-04', photon_flux_error='1.75e-07', dlogl='3.47e-02', energy_flux='1.15e-04', photon_flux2='3.72e-07', job_status='DONE', time_completed='2021-09-04 09:48:10.334756', photon_index_error2='0.57', photon_index2='2.47', ts='10.94', fit_tolerance='1e-08', GAL='1.62', photon_index_error='0.00', energy_flux_error2='5.53e-05', EG='0.58', time_epoch_completed='1630774090.33', return_code='0', job_id='34170', GAL2='1.65', EG2='0.55', return_code2='0', energy_flux_error='5.83e-05', photon_flux_error2='1.95e-07', ts2='11.00', photon_index='2.32' WHERE bin_id='654' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:48:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 34170: <4FGL_J1146.9+3958_daily_bin654> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin654> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 09:36:28 2021
Job was executed on host(s) <bullet0069>, 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:48:11 2021
Results reported at Sat Sep  4 09:48:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin654 176.74 39.9775 408844801 409104001 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 :                                   471.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             200.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            703 sec.

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

