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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin729
RA = 176.74, Dec = 39.9775
tmin = 428284801, tmax = 428544001
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='35393', job_status='RUN', time_executed='2021-09-04 09:41:28.999398', time_epoch_executed='1630773689.0' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/35393

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/35393/ft1_4FGL_J1146.9+3958_daily_bin729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/35393/ft2_4FGL_J1146.9+3958_daily_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/35393/ft1_4FGL_J1146.9+3958_daily_bin729.fits outfile=/scratch/kocevski/35393/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin729.fits ra=176.74 dec=39.9775 rad=12.0 tmin=428284801.0 tmax=428544001.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.14
user 5.87
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/35393/ft2_4FGL_J1146.9+3958_daily_bin729.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/35393/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin729.fits evtable="EVENTS" outfile="/scratch/kocevski/35393/ft1_filtered_4FGL_J1146.9+3958_daily_bin729.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.73
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/35393/ft1_filtered_4FGL_J1146.9+3958_daily_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/35393/ft2_4FGL_J1146.9+3958_daily_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/35393/ltcube_428284801_428544001_4FGL_J1146.9+3958_daily_bin729.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/35393/ft2_4FGL_J1146.9+3958_daily_bin729.fits
.....................!
real 12.54
user 11.89
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/35393/ft1_filtered_4FGL_J1146.9+3958_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/35393/ft2_4FGL_J1146.9+3958_daily_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/35393/ltcube_428284801_428544001_4FGL_J1146.9+3958_daily_bin729.fits outfile=/scratch/kocevski/35393/expmap_428284801_428544001_4FGL_J1146.9+3958_daily_bin729.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/35393/ltcube_428284801_428544001_4FGL_J1146.9+3958_daily_bin729.fits
.....................!
real 192.92
user 186.51
sys 5.03

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/35393/ft1_filtered_4FGL_J1146.9+3958_daily_bin729.fits scfile=/scratch/kocevski/35393/ft2_4FGL_J1146.9+3958_daily_bin729.fits outfile=/scratch/kocevski/35393/cmap_428284801_428544001_4FGL_J1146.9+3958_daily_bin729.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.64
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/35393/ft1_filtered_4FGL_J1146.9+3958_daily_bin729.fits scfile=/scratch/kocevski/35393/ft2_4FGL_J1146.9+3958_daily_bin729.fits outfile=/scratch/kocevski/35393/cmap_HighResolution_428284801_428544001_4FGL_J1146.9+3958_daily_bin729.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.243       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0587       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6197       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9955       1.0000         .10000E-03   10000.    
     5 'Prefactor '    87.592       1.0000         .10000E-03   10000.    
     6 'norm      '    3.6995       1.0000         .10000E-03   10000.    
     7 'norm      '    7.3481       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9471       1.0000         .10000E-03   10000.    
     9 'Prefactor '    61.249       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.625       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2366       1.0000         .10000E-03   10000.    
    14 'Prefactor '    119.58       1.0000         .10000E-03   10000.    
    15 'norm      '    6.0660       1.0000         .10000E-03   10000.    
    16 'norm      '    6.4096       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .67309E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3105       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2731       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4353       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.3764       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.0266       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.445       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .63618       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2944       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=   5769.486     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3562 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.239        59.028        .40091E-06   -.86363E-05
   2  norm          2.0586        .41433        .34907E-08   -.14842E-03
   3  Prefactor     1.6229        29.476        .10717E-05   -.14217E-04
   4  Prefactor     9.9945        10.549       -.14709E-06   -.40024E-04
   5  Prefactor     87.776        140.33        .34405E-05    .10781E-03
   6  norm          3.6955        12.383        .42244E-07   -.53508E-04
   7  norm          7.3275        50.230       -.11427E-06   -.21777E-04
   8  Prefactor     8.9470        4.1657        .48880E-06   -.17616E-03
   9  Prefactor     61.255        60.608       -.12781E-05    .13360E-04
  10  Prefactor     .10000E-03    6.6208       -.17966E-06** at limit **
  11  norm          .10000E-03    .83704       -.97381E-08** at limit **
  12  Prefactor     13.623        11.129        .13656E-06   -.73280E-04
  13  Prefactor     5.2383        5.4074        .22637E-06   -.85353E-04
  14  Prefactor     119.57        61.724        .15070E-06   -.36278E-04
  15  norm          6.0661        1.8286        .51445E-07   -.12656E-03
  16  norm          6.4114        8.6714        .20950E-06    .12713E-03
  17  Prefactor     .10005E-03    11.366        .76426E-06** at limit **
  18  Prefactor     5.3109        4.7827        .30615E-05   -.23275E-03
  19  Prefactor     .10000E-03    47.732        .26119E-06** at limit **
  20  Prefactor     9.2662        26.478       -.69188E-05   -.18475E-04
  21  norm          1.4354        1.0670        .50919E-07   -.78440E-04
  22  Prefactor     .10000E-03    102.82       -.23978E-05** at limit **
  23  norm          2.3763        2.8462        .82380E-07   -.11518E-04
  24  Prefactor     2.0265        7.6304        .12931E-05   -.46726E-04
  25  norm          .10000E-03    8.2147       -.93294E-07** at limit **
  26  Prefactor     18.449        22.802        .26243E-06    .22038E-06
  27  Normalizat    .63613        .18929       -.30390E-05    .16837E-05
  28  Prefactor     1.2945        .22223        .12496E-05   -.13413E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.2386
  norm       = 2.05863
  Prefactor  = 1.62294
  Prefactor  = 9.99453
  Prefactor  = 87.7759
  norm       = 3.69547
  norm       = 7.32753
  Prefactor  = 8.94696
  Prefactor  = 61.2551
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6233
  Prefactor  = 5.23832
  Prefactor  = 119.569
  norm       = 6.06607
  norm       = 6.41143
  Prefactor  = 0.000100046
  Prefactor  = 5.31093
  Prefactor  = 0.0001
  Prefactor  = 9.26615
  norm       = 1.43541
  Prefactor  = 0.0001
  norm       = 2.37634
  Prefactor  = 2.02651
  norm       = 0.0001
  Prefactor  = 18.4487
  Normalizat = 0.636127
  Prefactor  = 1.29446
 **********
 **   18 **HESSE 
 **********

 FCN=   5769.486     FROM HESSE     STATUS=OK           527 CALLS     4089 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.239        59.039        .72857E-04   -1.4608    
   2  norm          2.0586        .41333        .20485E-04   -1.5421    
   3  Prefactor     1.6229        28.341        .33257E-03   -1.5453    
   4  Prefactor     9.9945        10.522        .12674E-03   -1.5076    
   5  Prefactor     87.776        140.50        .21464E-03   -1.3831    
   6  norm          3.6955        12.170        .20997E-03   -1.5323    
   7  norm          7.3275        50.383        .14796E-03   -1.5167    
   8  Prefactor     8.9470        4.1863        .41244E-03   -1.5110    
   9  Prefactor     61.255        60.961        .51269E-04   -1.4141    
  10  Prefactor     .10000E-03    6.6293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .84099        .67731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.623        11.126        .10851E-03   -1.4970    
  13  Prefactor     5.2383        5.3731        .16764E-03   -1.5250    
  14  Prefactor     119.57        62.070        .36801E-04   -1.3517    
  15  norm          6.0661        1.8374        .48218E-04   -1.5215    
  16  norm          6.4114        8.6715        .15853E-03   -1.5201    
  17  Prefactor     .10005E-03    107.95        .48682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.3109        4.7874        .61567E-03   -1.5247    
  19  Prefactor     .10000E-03    47.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.2662        26.454        .13161E-03   -1.5099    
  21  norm          1.4354        1.0663        .36035E-04   -1.5468    
  22  Prefactor     .10000E-03    106.02        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.3763        2.8362        .13644E-03   -1.5400    
  24  Prefactor     2.0265        7.6156        .29064E-03   -1.5423    
  25  norm          .10000E-03    8.2500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.449        22.773        .93258E-04   -1.4849    
  27  Normalizat    .63613        .21709        .29904E-03   -1.0647    
  28  Prefactor     1.2945        .26036        .27168E-03   -.83472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5426e-10
Minuit parameter uncertainties:
  1  59.153
  2  0.413335
  3  13.5711
  4  10.5238
  5  141.038
  6  12.1777
  7  38.4744
  8  4.18642
  9  61.0228
  10  2.42297e-06
  11  1.50501e-07
  12  11.1277
  13  5.37364
  14  62.1035
  15  1.83741
  16  8.67318
  17  0.00444983
  18  4.78775
  19  3.401e-05
  20  26.4877
  21  1.06631
  22  6.18952e-06
  23  2.83637
  24  7.61926
  25  2.27611e-07
  26  22.7841
  27  0.21738
  28  0.26062
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  6.066e+00  1.837e+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.294e+00  2.606e-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:  6.361e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.29
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.03e-07 +/- 6.14e-08
Energy Flux (Fixed Index): 6.77e-05 +/- 2.05e-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) = 5768.73647659
delta logL = 0.749300615731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5768.73636576
delta logL = 0.749411448168

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1701       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6700       1.0000          .0000       5.0000    
     3 'Normalizat'    .59573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3261       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=   5768.736     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      237 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1700        18.265        .44201E-02    .51435E-03
   2  alpha         2.6699        3.7552        .15224        .38602E-04
   3  Normalizat    .59574        .15996        .69514E-01    .28652E-04
   4  Prefactor     1.3261        .19108        .60755E-01    .24171E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.17005
  alpha      = 2.66995
  Normalizat = 0.595744
  Prefactor  = 1.3261
 **********
 **   18 **HESSE 
 **********

 FCN=   5768.736     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1700        1.6535        .41773E-04   -1.5253    
   2  alpha         2.6699        .29383        .66097E-03    .68032E-01
   3  Normalizat    .59574        .20811        .30768E-03   -1.0816    
   4  Prefactor     1.3261        .25890        .26866E-03   -.82534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.63158e-12
Minuit parameter uncertainties:
  1  1.6535
  2  0.294512
  3  0.208385
  4  0.259156
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/35393': 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) = 5768.73636576
delta logL = 0.749411451518

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  5.170e+00  1.653e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.670e+00  2.945e-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.326e+00  2.592e-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.957e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.42
Ra Dec: 176.740 39.977
Photon Index (Free Index): 2.67 +/- 0.29
Photon Flux (Free Index): 2.43e-07 +/- 6.77e-08
Energy Flux (Free Index): 5.94e-05 +/- 1.60e-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/35393/cmap_HighResolution_428284801_428544001_4FGL_J1146.9+3958_daily_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.03e-07', energy_flux2='5.94e-05', photon_flux_error='6.14e-08', dlogl='7.49e-01', energy_flux='6.77e-05', photon_flux2='2.43e-07', job_status='DONE', time_completed='2021-09-04 09:54:38.256607', photon_index_error2='0.29', photon_index2='2.67', ts='34.29', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='0.64', time_epoch_completed='1630774478.26', return_code='0', job_id='35393', GAL2='1.33', EG2='0.60', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='6.77e-08', ts2='36.42', photon_index='2.32' WHERE bin_id='729' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:54:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 35393: <4FGL_J1146.9+3958_daily_bin729> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin729> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 09:41:15 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:41:16 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:41:16 2021
Terminated at Sat Sep  4 09:54:39 2021
Results reported at Sat Sep  4 09:54:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin729 176.74 39.9775 428284801 428544001 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 :                                   785.35 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            804 sec.

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

