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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin810
RA = 176.74, Dec = 39.9775
tmin = 449280001, tmax = 449539201
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='35523', job_status='RUN', time_executed='2021-09-04 09:41:42.296067', time_epoch_executed='1630773702.3' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='810'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/35523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/35523/ft1_4FGL_J1146.9+3958_daily_bin810.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/35523/ft2_4FGL_J1146.9+3958_daily_bin810.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/35523/ft1_4FGL_J1146.9+3958_daily_bin810.fits outfile=/scratch/kocevski/35523/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin810.fits ra=176.74 dec=39.9775 rad=12.0 tmin=449280001.0 tmax=449539201.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.08
user 5.58
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/35523/ft2_4FGL_J1146.9+3958_daily_bin810.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/35523/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin810.fits evtable="EVENTS" outfile="/scratch/kocevski/35523/ft1_filtered_4FGL_J1146.9+3958_daily_bin810.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.79
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/35523/ft1_filtered_4FGL_J1146.9+3958_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/35523/ft2_4FGL_J1146.9+3958_daily_bin810.fits sctable="SC_DATA" expcube=/scratch/kocevski/35523/ltcube_449280001_449539201_4FGL_J1146.9+3958_daily_bin810.fits outfile=/scratch/kocevski/35523/expmap_449280001_449539201_4FGL_J1146.9+3958_daily_bin810.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/35523/ltcube_449280001_449539201_4FGL_J1146.9+3958_daily_bin810.fits
.....................!
real 190.54
user 185.80
sys 4.16

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/35523/ft1_filtered_4FGL_J1146.9+3958_daily_bin810.fits scfile=/scratch/kocevski/35523/ft2_4FGL_J1146.9+3958_daily_bin810.fits outfile=/scratch/kocevski/35523/cmap_449280001_449539201_4FGL_J1146.9+3958_daily_bin810.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/35523/ft1_filtered_4FGL_J1146.9+3958_daily_bin810.fits scfile=/scratch/kocevski/35523/ft2_4FGL_J1146.9+3958_daily_bin810.fits outfile=/scratch/kocevski/35523/cmap_HighResolution_449280001_449539201_4FGL_J1146.9+3958_daily_bin810.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=176.74 yref=39.9775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.162       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5090       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .53320E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    101.53       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14874       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.8247       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.024       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2863       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.7617       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.1875       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.380       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .99879       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0169       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=   4786.762     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3994 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.081        128.82       -.18497E-03    .22243E-04
   2  norm          1.5090        .38404        .41684E-07    .15768E-02
   3  Prefactor     .10000E-03    6.2723        .35546E-05** at limit **
   4  Prefactor     .10000E-03    6.0562       -.27108E-05** at limit **
   5  Prefactor     .10071E-03    867.11       -.33390E-03** at limit **
   6  norm          .10000E-03    18.359       -.45780E-05** at limit **
   7  norm          101.51        86.206       -.10723E-04    .13511E-03
   8  Prefactor     .14838        1.4495       -.11858E-05    .35996E-03
   9  Prefactor     .10000E-03    20.469       -.86368E-06** at limit **
  10  Prefactor     .10000E-03    14.035       -.98360E-06** at limit **
  11  norm          6.8244        3.3828       -.32939E-06    .68902E-03
  12  Prefactor     .10000E-03    7.6029       -.14387E-05** at limit **
  13  Prefactor     .10000E-03    2.7114       -.13196E-06** at limit **
  14  Prefactor     57.038        74.854        .15921E-04    .33843E-04
  15  norm          2.2860        1.8212       -.15057E-05   -.89195E-04
  16  norm          .10000E-03    3.8568       -.16021E-07** at limit **
  17  Prefactor     .10000E-03    12.295        .30573E-05** at limit **
  18  Prefactor     .10000E-03    3.2700       -.26282E-06** at limit **
  19  Prefactor     .10000E-03    37.658        .12839E-04** at limit **
  20  Prefactor     .10000E-03    10.047       -.11348E-05** at limit **
  21  norm          3.7616        1.8259       -.23218E-06    .13603E-03
  22  Prefactor     .10000E-03    42.012       -.10810E-04** at limit **
  23  norm          7.1873        5.1745       -.43642E-06    .36554E-04
  24  Prefactor     .10000E-03    10.351        .15937E-06** at limit **
  25  norm          13.380        12.435       -.78035E-06    .45561E-05
  26  Prefactor     .10000E-03    21.376        .20171E-05** at limit **
  27  Normalizat    .99871        .19949        .58349E-05    .48250E-03
  28  Prefactor     1.0169        .23039        .17242E-05    .62099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.081
  norm       = 1.50905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010071
  norm       = 0.0001
  norm       = 101.514
  Prefactor  = 0.148383
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.82444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.0377
  norm       = 2.28596
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.76161
  Prefactor  = 0.0001
  norm       = 7.18725
  Prefactor  = 0.0001
  norm       = 13.3795
  Prefactor  = 0.0001
  Normalizat = 0.998709
  Prefactor  = 1.01694
 **********
 **   18 **HESSE 
 **********

 FCN=   4786.762     FROM HESSE     STATUS=OK           507 CALLS     4501 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.081        130.95        .96679E-04   -1.4881    
   2  norm          1.5090        .38438        .20907E-04   -1.5462    
   3  Prefactor     .10000E-03    6.2801        .16921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0614        .16629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10071E-03    881.08        .42250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          101.51        86.187        .39902E-04   -1.3689    
   8  Prefactor     .14838        5.5165        .15633E-02   -1.5631    
   9  Prefactor     .10000E-03    20.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.8244        3.3581        .82956E-04   -1.5185    
  12  Prefactor     .10000E-03    7.6451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7318        .11121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     57.038        75.780        .53124E-04   -1.4196    
  15  norm          2.2860        1.8297        .64874E-04   -1.5406    
  16  norm          .10000E-03    3.8579        .13270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4059        .24410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    37.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.7616        1.8248        .62471E-04   -1.5320    
  22  Prefactor     .10000E-03    42.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.1873        5.1729        .12841E-03   -1.5172    
  24  Prefactor     .10000E-03    10.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.380        12.435        .10950E-03   -1.4976    
  26  Prefactor     .10000E-03    21.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .99871        .23600        .24843E-03   -.93074    
  28  Prefactor     1.0169        .27332        .29124E-03   -.92167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12078e-09
Minuit parameter uncertainties:
  1  94.8792
  2  0.384377
  3  6.45493e-06
  4  1.44482e-06
  5  0.0507914
  6  6.16806e-05
  7  86.294
  8  1.80905
  9  1.42174e-06
  10  6.97968e-05
  11  3.35824
  12  3.28919e-05
  13  1.50858e-05
  14  75.9085
  15  1.82975
  16  3.66194e-06
  17  3.67524e-05
  18  4.4704e-05
  19  2.7744e-05
  20  3.77821e-05
  21  1.82487
  22  0.000194582
  23  5.17322
  24  9.55572e-05
  25  12.4375
  26  5.87385e-05
  27  0.236249
  28  0.27369
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  2.286e+00  1.830e+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.017e+00  2.737e-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.987e-01  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.27
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 7.64e-08 +/- 6.11e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 2.04e-05

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

Saving results to:
/scratch/kocevski/35523/likelihoodResults_449280001_449539201_4FGL_J1146.9+3958_daily_bin810.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) = 4786.2221595
delta logL = 0.539425036141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4786.20223216
delta logL = 0.559352379269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7256       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9453       1.0000          .0000       5.0000    
     3 'Normalizat'    .96331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0450       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=   4786.202     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      235 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7259        19.844        .79921E-02    .37847E-03
   2  alpha         2.9453        3.8979        .27691        .31613E-04
   3  Normalizat    .96338        .78990E-01    .45706E-01    .20057E-05
   4  Prefactor     1.0452        .99460E-01    .65036E-01    .24408E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.72587
  alpha      = 2.94527
  Normalizat = 0.963382
  Prefactor  = 1.04523
 **********
 **   18 **HESSE 
 **********

 FCN=   4786.202     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7259        1.4479        .49374E-04   -1.5445    
   2  alpha         2.9453        .66724        .11633E-01    .17906    
   3  Normalizat    .96338        .23263        .25212E-03   -.94267    
   4  Prefactor     1.0452        .27294        .28767E-03   -.91237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22964e-09
Minuit parameter uncertainties:
  1  1.44793
  2  0.675701
  3  0.232878
  4  0.273303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/35523': 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) = 4786.20222914
delta logL = 0.559355395907

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.726e+00  1.448e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.945e+00  6.757e-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.045e+00  2.733e-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.634e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.47
Ra Dec: 176.740 39.977
Photon Index (Free Index): 2.95 +/- 0.68
Photon Flux (Free Index): 1.09e-07 +/- 6.44e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.36e-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/35523/cmap_HighResolution_449280001_449539201_4FGL_J1146.9+3958_daily_bin810.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-05', comment='SUCCESS', photon_flux='7.64e-08', energy_flux2='2.28e-05', photon_flux_error='6.11e-08', dlogl='5.59e-01', energy_flux='2.55e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-04 09:55:07.904566', photon_index_error2='0.68', photon_index2='2.95', ts='3.27', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='1.36e-05', EG='1.00', time_epoch_completed='1630774507.9', return_code='0', job_id='35523', GAL2='1.05', EG2='0.96', return_code2='0', energy_flux_error='2.04e-05', photon_flux_error2='6.44e-08', ts2='4.47', photon_index='2.32' WHERE bin_id='810' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:55:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 35523: <4FGL_J1146.9+3958_daily_bin810> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin810> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 09:41:26 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:41:29 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:29 2021
Terminated at Sat Sep  4 09:55:08 2021
Results reported at Sat Sep  4 09:55:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin810 176.74 39.9775 449280001 449539201 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.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

