/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 178 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 = 7569
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1146.9+3958_daily_bin195
RA = 176.74, Dec = 39.9775
tmin = 289872001, tmax = 290131201
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='29795', job_status='RUN', time_executed='2021-09-04 09:24:23.971700', time_epoch_executed='1630772663.97' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29795

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29795/ft1_4FGL_J1146.9+3958_daily_bin195.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29795/ft2_4FGL_J1146.9+3958_daily_bin195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29795/ft1_4FGL_J1146.9+3958_daily_bin195.fits outfile=/scratch/kocevski/29795/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin195.fits ra=176.74 dec=39.9775 rad=12.0 tmin=289872001.0 tmax=290131201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.48
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29795/ft2_4FGL_J1146.9+3958_daily_bin195.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/29795/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin195.fits evtable="EVENTS" outfile="/scratch/kocevski/29795/ft1_filtered_4FGL_J1146.9+3958_daily_bin195.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/29795/ft1_filtered_4FGL_J1146.9+3958_daily_bin195.fits" evtable="EVENTS" scfile=/scratch/kocevski/29795/ft2_4FGL_J1146.9+3958_daily_bin195.fits sctable="SC_DATA" outfile=/scratch/kocevski/29795/ltcube_289872001_290131201_4FGL_J1146.9+3958_daily_bin195.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/29795/ft2_4FGL_J1146.9+3958_daily_bin195.fits
.....................!
real 11.70
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29795/ft1_filtered_4FGL_J1146.9+3958_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/29795/ft2_4FGL_J1146.9+3958_daily_bin195.fits sctable="SC_DATA" expcube=/scratch/kocevski/29795/ltcube_289872001_290131201_4FGL_J1146.9+3958_daily_bin195.fits outfile=/scratch/kocevski/29795/expmap_289872001_290131201_4FGL_J1146.9+3958_daily_bin195.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/29795/ltcube_289872001_290131201_4FGL_J1146.9+3958_daily_bin195.fits
.....................!
real 189.94
user 184.85
sys 4.74

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/29795/ft1_filtered_4FGL_J1146.9+3958_daily_bin195.fits scfile=/scratch/kocevski/29795/ft2_4FGL_J1146.9+3958_daily_bin195.fits outfile=/scratch/kocevski/29795/cmap_289872001_290131201_4FGL_J1146.9+3958_daily_bin195.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.73
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29795/ft1_filtered_4FGL_J1146.9+3958_daily_bin195.fits scfile=/scratch/kocevski/29795/ft2_4FGL_J1146.9+3958_daily_bin195.fits outfile=/scratch/kocevski/29795/cmap_HighResolution_289872001_290131201_4FGL_J1146.9+3958_daily_bin195.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.58
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2635       1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.174       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.986       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.847       1.0000         .10000E-03   10000.    
     6 'norm      '    .11507E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.399       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11211E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .49902E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .29393       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.154       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5163       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4144       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.954       1.0000         .10000E-03   10000.    
    21 'norm      '    5.3309       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0098       1.0000         .10000E-03   10000.    
    23 'norm      '    3.9497       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .96478       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88760       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=   6574.834     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3545 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.433       -.62888E-05** at limit **
   2  norm          1.2636        .34548       -.15068E-07    .17640E-03
   3  Prefactor     40.169        20.449        .58476E-06   -.23010E-04
   4  Prefactor     29.986        17.553       -.13199E-06    .66424E-05
   5  Prefactor     13.841        62.700       -.10454E-04    .25162E-04
   6  norm          .10000E-03    21.212        .17831E-05** at limit **
   7  norm          13.394        47.585       -.63222E-05    .22268E-04
   8  Prefactor     .10000E-03    1.6706        .35072E-06** at limit **
   9  Prefactor     13.109        32.087       -.25781E-05   -.56706E-06
  10  Prefactor     .10002E-03    19.167       -.38091E-05** at limit **
  11  norm          .29352        1.4944       -.49604E-06   -.80910E-03
  12  Prefactor     28.107        16.281        .26958E-05    .67721E-03
  13  Prefactor     .10000E-03    2.0259       -.82291E-08** at limit **
  14  Prefactor     .10000E-03    10.364       -.17877E-06** at limit **
  15  norm          4.5168        1.2265       -.36599E-08   -.13156E-03
  16  norm          .10000E-03    3.1567       -.62059E-08** at limit **
  17  Prefactor     .10000E-03    13.200        .26680E-05** at limit **
  18  Prefactor     3.4146        3.2964       -.52452E-07   -.24175E-03
  19  Prefactor     .10000E-03    20.361        .12104E-04** at limit **
  20  Prefactor     14.955        23.748       -.25380E-06    .15295E-04
  21  norm          5.3309        1.5737       -.32716E-07    .18445E-03
  22  Prefactor     7.0085        15.919        .44068E-06   -.38873E-04
  23  norm          3.9499        3.0179       -.39764E-07   -.49267E-04
  24  Prefactor     .10000E-03    3.1136       -.71491E-07** at limit **
  25  norm          .10000E-03    4.0637        .13120E-07** at limit **
  26  Prefactor     .10000E-03    23.294       -.12029E-04** at limit **
  27  Normalizat    .96481        .16149       -.92441E-07    .34289E-03
  28  Prefactor     .88754        .18951        .52394E-06    .16604E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.26358
  Prefactor  = 40.1695
  Prefactor  = 29.9862
  Prefactor  = 13.8409
  norm       = 0.0001
  norm       = 13.394
  Prefactor  = 0.0001
  Prefactor  = 13.1093
  Prefactor  = 0.000100024
  norm       = 0.293516
  Prefactor  = 28.1074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.51676
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.41456
  Prefactor  = 0.000100001
  Prefactor  = 14.9554
  norm       = 5.3309
  Prefactor  = 7.00846
  norm       = 3.94986
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.964807
  Prefactor  = 0.887543
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.834     FROM HESSE     STATUS=OK           525 CALLS     4070 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2636        .34647        .23095E-04   -1.5483    
   3  Prefactor     40.169        20.425        .63240E-04   -1.4440    
   4  Prefactor     29.986        17.569        .73167E-04   -1.4612    
   5  Prefactor     13.841        62.590        .10764E-03   -1.4964    
   6  norm          .10000E-03    21.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.394        47.639        .10942E-03   -1.4976    
   8  Prefactor     .10000E-03    3.5983        .18659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.109        29.159        .11087E-03   -1.4984    
  10  Prefactor     .10002E-03    185.72        .60894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .29352        2.5293        .17595E-02   -1.5600    
  12  Prefactor     28.107        15.076        .75504E-04   -1.4647    
  13  Prefactor     .10000E-03    2.0419        .11265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5168        1.2234        .44508E-04   -1.5283    
  16  norm          .10000E-03    3.1586        .14069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4146        3.2722        .12360E-03   -1.5338    
  19  Prefactor     .10000E-03    19.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.955        23.690        .10357E-03   -1.4934    
  21  norm          5.3309        1.5746        .53372E-04   -1.5246    
  22  Prefactor     7.0085        15.903        .15152E-03   -1.5178    
  23  norm          3.9499        3.0198        .11947E-03   -1.5310    
  24  Prefactor     .10000E-03    3.1335        .13971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.0740        .15962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    23.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .96481        .19096        .23612E-03   -.94219    
  28  Prefactor     .88754        .22427        .29545E-03   -.96578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29438e-09
Minuit parameter uncertainties:
  1  0.000149778
  2  0.346472
  3  20.4284
  4  17.5717
  5  58.9683
  6  0.000118199
  7  47.7743
  8  5.07598e-05
  9  29.1903
  10  0.00426807
  11  1.72304
  12  15.0785
  13  3.67174e-06
  14  5.69433e-06
  15  1.22342
  16  4.10992e-07
  17  7.88221e-05
  18  3.2724
  19  0.000332927
  20  23.7049
  21  1.5746
  22  15.9128
  23  3.01989
  24  7.35494e-07
  25  2.76384e-06
  26  0.000388347
  27  0.191093
  28  0.224504
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  4.517e+00  1.223e+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:  8.875e-01  2.245e-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.648e-01  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.75
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 1.51e-07 +/- 4.09e-08
Energy Flux (Fixed Index): 5.04e-05 +/- 1.36e-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) = 6574.83255316
delta logL = 0.00159471488496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6574.83217174
delta logL = 0.00197613962246

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4842       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3404       1.0000          .0000       5.0000    
     3 'Normalizat'    .96300       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88910       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=   6574.832     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      196 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4842        4.2774        .47535E-02    .12431E-02
   2  alpha         2.3404        .87110        .18120        .53408E-04
   3  Normalizat    .96300        .16164        .45702E-01    .15715E-04
   4  Prefactor     .88909        .19564        .66741E-01    .64463E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.4842
  alpha      = 2.34042
  Normalizat = 0.963005
  Prefactor  = 0.889093
 **********
 **   18 **HESSE 
 **********

 FCN=   6574.832     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4842        1.3308        .44260E-04   -1.5284    
   2  alpha         2.3404        .28478        .77754E-02   -.63876E-01
   3  Normalizat    .96300        .18513        .23631E-03   -.94280    
   4  Prefactor     .88909        .22154        .29523E-03   -.96523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46465e-11
Minuit parameter uncertainties:
  1  1.33085
  2  0.285398
  3  0.185253
  4  0.221765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29795': 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) = 6574.83217174
delta logL = 0.00197613999171

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  4.484e+00  1.331e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.340e+00  2.854e-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:  8.891e-01  2.218e-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.630e-01  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.32
Ra Dec: 176.740 39.977
Photon Index (Free Index): 2.34 +/- 0.29
Photon Flux (Free Index): 1.52e-07 +/- 4.58e-08
Energy Flux (Free Index): 4.98e-05 +/- 1.61e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/29795/cmap_HighResolution_289872001_290131201_4FGL_J1146.9+3958_daily_bin195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.51e-07', energy_flux2='4.98e-05', photon_flux_error='4.09e-08', dlogl='1.98e-03', energy_flux='5.04e-05', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-09-04 09:37:44.377326', photon_index_error2='0.29', photon_index2='2.34', ts='30.75', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='0.96', time_epoch_completed='1630773464.38', return_code='0', job_id='29795', GAL2='0.89', EG2='0.96', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.58e-08', ts2='30.32', photon_index='2.32' WHERE bin_id='195' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:37:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 29795: <4FGL_J1146.9+3958_daily_bin195> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin195> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 09:21:13 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:21:15 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:21:15 2021
Terminated at Sat Sep  4 09:37:45 2021
Results reported at Sat Sep  4 09:37:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin195 176.74 39.9775 289872001 290131201 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 :                                   799.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

