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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin870
RA = 176.74, Dec = 39.9775
tmin = 464832001, tmax = 465091201
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='35619', job_status='RUN', time_executed='2021-09-04 09:41:54.403616', time_epoch_executed='1630773714.4' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/35619

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/35619/ft1_4FGL_J1146.9+3958_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/35619/ft2_4FGL_J1146.9+3958_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/35619/ft1_4FGL_J1146.9+3958_daily_bin870.fits outfile=/scratch/kocevski/35619/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin870.fits ra=176.74 dec=39.9775 rad=12.0 tmin=464832001.0 tmax=465091201.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.38
user 3.08
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/35619/ft1_filtered_4FGL_J1146.9+3958_daily_bin870.fits" evtable="EVENTS" scfile=/scratch/kocevski/35619/ft2_4FGL_J1146.9+3958_daily_bin870.fits sctable="SC_DATA" outfile=/scratch/kocevski/35619/ltcube_464832001_465091201_4FGL_J1146.9+3958_daily_bin870.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/35619/ft2_4FGL_J1146.9+3958_daily_bin870.fits
.....................!
real 11.73
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/35619/ft1_filtered_4FGL_J1146.9+3958_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/35619/ft2_4FGL_J1146.9+3958_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/35619/ltcube_464832001_465091201_4FGL_J1146.9+3958_daily_bin870.fits outfile=/scratch/kocevski/35619/expmap_464832001_465091201_4FGL_J1146.9+3958_daily_bin870.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/35619/ltcube_464832001_465091201_4FGL_J1146.9+3958_daily_bin870.fits
.....................!
real 189.61
user 184.80
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/35619/ft1_filtered_4FGL_J1146.9+3958_daily_bin870.fits scfile=/scratch/kocevski/35619/ft2_4FGL_J1146.9+3958_daily_bin870.fits outfile=/scratch/kocevski/35619/cmap_464832001_465091201_4FGL_J1146.9+3958_daily_bin870.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.55
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.104       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4213       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14367E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.487       1.0000         .10000E-03   10000.    
     7 'norm      '    .10265E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10885E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.692       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.9351       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.195       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.511       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2655       1.0000         .10000E-03   10000.    
    16 'norm      '    16.097       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.9400       1.0000         .10000E-03   10000.    
    21 'norm      '    3.6585       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.639       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4490       1.0000         .10000E-03   10000.    
    25 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.1866       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .71115       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2562       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=   6209.137     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3517 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.126        62.923        .24030E-05    .98356E-04
   2  norm          1.4213        .31530        .74133E-08    .99379E-03
   3  Prefactor     .10000E-03    3.8613       -.74416E-07** at limit **
   4  Prefactor     .10000E-03    7.6885       -.97270E-07** at limit **
   5  Prefactor     .10000E-03    182.06       -.54392E-06** at limit **
   6  norm          18.483        14.105        .55285E-06    .26677E-03
   7  norm          .10001E-03    66.383        .66855E-05** at limit **
   8  Prefactor     .10000E-03    1.5268       -.21315E-05** at limit **
   9  Prefactor     22.633        40.256        .21535E-05    .32914E-03
  10  Prefactor     .10000E-03    25.514       -.63384E-06** at limit **
  11  norm          3.9341        2.8514        .39695E-06    .13712E-02
  12  Prefactor     9.9131        11.366       -.55543E-07    .69566E-04
  13  Prefactor     13.193        5.7303        .26227E-06    .72900E-03
  14  Prefactor     16.518        39.131        .35096E-06    .59615E-04
  15  norm          1.2655        1.0872        .54101E-07    .27762E-03
  16  norm          16.095        10.589       -.34199E-07    .30012E-05
  17  Prefactor     .10000E-03    53.660       -.62565E-05** at limit **
  18  Prefactor     .10000E-03    1.5922        .17329E-07** at limit **
  19  Prefactor     .10000E-03    32.008        .13991E-05** at limit **
  20  Prefactor     9.9414        12.263        .48029E-07   -.18855E-05
  21  norm          3.6586        1.5256       -.51524E-08    .18121E-03
  22  Prefactor     33.642        35.241       -.72828E-06    .57744E-04
  23  norm          .10000E-03    1.0574       -.11600E-07** at limit **
  24  Prefactor     1.4489        8.0509        .15945E-05   -.57446E-04
  25  norm          .10000E-03    15.130       -.11756E-06** at limit **
  26  Prefactor     9.1920        24.238        .37772E-08   -.11410E-04
  27  Normalizat    .71117        .17023       -.57303E-06    .32603E-03
  28  Prefactor     1.2561        .19985        .37787E-06    .25672E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.1258
  norm       = 1.42126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.4826
  norm       = 0.000100005
  Prefactor  = 0.000100003
  Prefactor  = 22.6329
  Prefactor  = 0.0001
  norm       = 3.93415
  Prefactor  = 9.91313
  Prefactor  = 13.1929
  Prefactor  = 16.5177
  norm       = 1.2655
  norm       = 16.0954
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.9414
  norm       = 3.65859
  Prefactor  = 33.6416
  norm       = 0.0001
  Prefactor  = 1.44888
  norm       = 0.0001
  Prefactor  = 9.19201
  Normalizat = 0.711167
  Prefactor  = 1.25612
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.137     FROM HESSE     STATUS=OK           521 CALLS     4038 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.126        63.258        .48637E-04   -1.4055    
   2  norm          1.4213        .31581        .20177E-04   -1.5470    
   3  Prefactor     .10000E-03    3.8659        .15121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.7212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    183.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.483        14.147        .93151E-04   -1.4848    
   7  norm          .10001E-03    68.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0711        .16508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.633        41.510        .84086E-04   -1.4756    
  10  Prefactor     .10000E-03    25.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.9341        2.8493        .96196E-04   -1.5311    
  12  Prefactor     9.9131        11.331        .12726E-03   -1.5078    
  13  Prefactor     13.193        5.7588        .11027E-03   -1.4981    
  14  Prefactor     16.518        38.782        .98566E-04   -1.4895    
  15  norm          1.2655        1.0546        .67013E-04   -1.5483    
  16  norm          16.095        10.587        .99828E-04   -1.4905    
  17  Prefactor     .10000E-03    55.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6198        .96964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.9414        12.255        .12710E-03   -1.5077    
  21  norm          3.6586        1.5240        .60287E-04   -1.5325    
  22  Prefactor     33.642        35.232        .69090E-04   -1.4547    
  23  norm          .10000E-03    1.0643        .79124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.4489        7.9833        .35798E-03   -1.5467    
  25  norm          .10000E-03    15.316        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.1920        24.081        .13223E-03   -1.5102    
  27  Normalizat    .71117        .20246        .27053E-03   -1.0345    
  28  Prefactor     1.2561        .23866        .26106E-03   -.84621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28289e-09
Minuit parameter uncertainties:
  1  63.3202
  2  0.315809
  3  4.06425e-06
  4  6.39479e-06
  5  0.000188409
  6  14.1497
  7  0.00116818
  8  0.000149867
  9  41.5632
  10  4.74884e-05
  11  2.84944
  12  11.3337
  13  5.75905
  14  38.8408
  15  1.05463
  16  10.5878
  17  0.000841751
  18  8.59315e-07
  19  0.000176682
  20  12.2577
  21  1.52399
  22  35.2538
  23  1.18695e-07
  24  6.8032
  25  1.96349e-05
  26  24.1064
  27  0.202678
  28  0.238866
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.265e+00  1.055e+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.256e+00  2.389e-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:  7.112e-01  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.23e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.18e-05

TS (Fixed Index): 2.60
Ra Dec: 176.740 39.977
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/35619/likelihoodResults_464832001_465091201_4FGL_J1146.9+3958_daily_bin870.txt

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) = 6209.03069027
delta logL = 0.106068741887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6209.01962076
delta logL = 0.117138250654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1015       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9149       1.0000          .0000       5.0000    
     3 'Normalizat'    .72865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2453       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=   6209.020     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1011        1.2579        .11312E-01    .34345E-03
   2  alpha         1.9146        .68514        .42675       -.34451E-04
   3  Normalizat    .72864        .16219        .42672E-01    .22369E-04
   4  Prefactor     1.2453        .20289        .59266E-01    .48896E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10108
  alpha      = 1.9146
  Normalizat = 0.728645
  Prefactor  = 1.24526
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.020     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1011        1.1665        .68610E-04   -1.5498    
   2  alpha         1.9146        .82670        .16393E-01   -.23636    
   3  Normalizat    .72864        .19130        .26737E-03   -1.0277    
   4  Prefactor     1.2453        .23714        .26208E-03   -.84950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29893e-09
Minuit parameter uncertainties:
  1  1.16648
  2  0.84353
  3  0.191471
  4  0.23734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/35619': 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) = 6209.01962067
delta logL = 0.117138337797

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.101e+00  1.166e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  1.915e+00  8.435e-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.245e+00  2.373e-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:  7.286e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 176.740 39.977
Photon Index (Free Index): 1.91 +/- 0.84
Photon Flux (Free Index): 2.69e-08 +/- 3.85e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.59e-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/35619/cmap_HighResolution_464832001_465091201_4FGL_J1146.9+3958_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-05', comment='SUCCESS', photon_flux='4.23e-08', energy_flux2='1.65e-05', photon_flux_error='3.52e-08', dlogl='1.17e-01', energy_flux='1.41e-05', photon_flux2='2.69e-08', job_status='DONE', time_completed='2021-09-04 09:56:35.810688', photon_index_error2='0.84', photon_index2='1.91', ts='2.60', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.59e-05', EG='0.71', time_epoch_completed='1630774595.81', return_code='0', job_id='35619', GAL2='1.25', EG2='0.73', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='3.85e-08', ts2='2.83', photon_index='2.32' WHERE bin_id='870' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:56:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 35619: <4FGL_J1146.9+3958_daily_bin870> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin870> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 09:41:35 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:41:37 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:37 2021
Terminated at Sat Sep  4 09:56:36 2021
Results reported at Sat Sep  4 09:56:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin870 176.74 39.9775 464832001 465091201 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 :                                   879.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

