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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin427
RA = 176.74, Dec = 39.9775
tmin = 350006401, tmax = 350265601
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='32519', job_status='RUN', time_executed='2021-09-04 09:33:30.427633', time_epoch_executed='1630773210.43' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='427'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32519

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32519/ft1_4FGL_J1146.9+3958_daily_bin427.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32519/ft2_4FGL_J1146.9+3958_daily_bin427.fits


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

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

Done.
real 4.13
user 3.79
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32519/ft1_filtered_4FGL_J1146.9+3958_daily_bin427.fits" evtable="EVENTS" scfile=/scratch/kocevski/32519/ft2_4FGL_J1146.9+3958_daily_bin427.fits sctable="SC_DATA" outfile=/scratch/kocevski/32519/ltcube_350006401_350265601_4FGL_J1146.9+3958_daily_bin427.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/32519/ft2_4FGL_J1146.9+3958_daily_bin427.fits
.....................!
real 11.88
user 11.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32519/ft1_filtered_4FGL_J1146.9+3958_daily_bin427.fits evtable="EVENTS" scfile=/scratch/kocevski/32519/ft2_4FGL_J1146.9+3958_daily_bin427.fits sctable="SC_DATA" expcube=/scratch/kocevski/32519/ltcube_350006401_350265601_4FGL_J1146.9+3958_daily_bin427.fits outfile=/scratch/kocevski/32519/expmap_350006401_350265601_4FGL_J1146.9+3958_daily_bin427.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/32519/ltcube_350006401_350265601_4FGL_J1146.9+3958_daily_bin427.fits
.....................!
real 190.46
user 186.23
sys 3.84

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/32519/ft1_filtered_4FGL_J1146.9+3958_daily_bin427.fits scfile=/scratch/kocevski/32519/ft2_4FGL_J1146.9+3958_daily_bin427.fits outfile=/scratch/kocevski/32519/cmap_350006401_350265601_4FGL_J1146.9+3958_daily_bin427.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32519/ft1_filtered_4FGL_J1146.9+3958_daily_bin427.fits scfile=/scratch/kocevski/32519/ft2_4FGL_J1146.9+3958_daily_bin427.fits outfile=/scratch/kocevski/32519/cmap_HighResolution_350006401_350265601_4FGL_J1146.9+3958_daily_bin427.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1020       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10075E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.523       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    28.749       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0838       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17117E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.739       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4028       1.0000         .10000E-03   10000.    
    16 'norm      '    14.266       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6198       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32089       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9728       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.537       1.0000         .10000E-03   10000.    
    23 'norm      '    11.460       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.519       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.709       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .74261       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2033       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=   6120.761     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3050 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.918        .64323E-05** at limit **
   2  norm          1.1017        .30748        .12252E-07   -.29719E-02
   3  Prefactor     .10000E-03    34.881        .16481E-04** at limit **
   4  Prefactor     18.509        14.305       -.49302E-06   -.34720E-03
   5  Prefactor     .10000E-03    40.692       -.94663E-05** at limit **
   6  norm          .10000E-03    4.7342        .19361E-06** at limit **
   7  norm          28.750        31.612        .42015E-06    .62498E-05
   8  Prefactor     5.0879        2.8159       -.33773E-06   -.91235E-03
   9  Prefactor     .10000E-03    53.938        .42992E-05** at limit **
  10  Prefactor     .10000E-03    8.3500        .10893E-06** at limit **
  11  norm          .10000E-03    1.4855        .33108E-06** at limit **
  12  Prefactor     .10000E-03    19.865       -.13018E-05** at limit **
  13  Prefactor     .10000E-03    2.6749       -.11615E-07** at limit **
  14  Prefactor     12.721        39.905       -.19462E-04   -.38763E-04
  15  norm          2.4029        1.3301        .77267E-06   -.47434E-03
  16  norm          14.266        9.0989        .11001E-06    .33771E-04
  17  Prefactor     9.6419        23.493        .21300E-05   -.24012E-04
  18  Prefactor     .31712        2.0737       -.11922E-05   -.42411E-03
  19  Prefactor     .10000E-03    14.513        .31288E-06** at limit **
  20  Prefactor     .10000E-03    6.5285       -.49482E-07** at limit **
  21  norm          2.9729        1.4211       -.25969E-07   -.10663E-03
  22  Prefactor     13.532        23.643       -.24937E-05   -.16284E-04
  23  norm          11.460        4.1434        .70471E-07    .44804E-04
  24  Prefactor     13.519        8.1579       -.26755E-06   -.24523E-04
  25  norm          .10000E-03    3.6720       -.17362E-06** at limit **
  26  Prefactor     14.715        19.603       -.35985E-06    .17740E-04
  27  Normalizat    .74255        .16369        .10084E-05   -.12870E-03
  28  Prefactor     1.2035        .19334       -.19954E-06   -.52621E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.10174
  Prefactor  = 0.000100001
  Prefactor  = 18.509
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 28.7499
  Prefactor  = 5.08789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 12.7213
  norm       = 2.4029
  norm       = 14.2662
  Prefactor  = 9.64191
  Prefactor  = 0.317116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.97288
  Prefactor  = 13.5323
  norm       = 11.4601
  Prefactor  = 13.5193
  norm       = 0.0001
  Prefactor  = 14.7149
  Normalizat = 0.742547
  Prefactor  = 1.20346
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.761     FROM HESSE     STATUS=OK           533 CALLS     3583 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1017        .30837        .21771E-04   -1.5498    
   3  Prefactor     .10000E-03    35.373        .41515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.509        14.346        .93061E-04   -1.4847    
   5  Prefactor     .10000E-03    40.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.7426        .16623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          28.750        31.616        .74721E-04   -1.4635    
   8  Prefactor     5.0879        2.7719        .89789E-04   -1.5257    
   9  Prefactor     .10000E-03    54.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.3772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6109        .17949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.3785        .41325E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.721        39.888        .11223E-03   -1.4994    
  15  norm          2.4029        1.3196        .55888E-04   -1.5398    
  16  norm          14.266        9.1014        .10604E-03   -1.4952    
  17  Prefactor     9.6419        23.419        .12920E-03   -1.5087    
  18  Prefactor     .31712        4.0582        .21364E-02   -1.5595    
  19  Prefactor     .10000E-03    14.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.5351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9729        1.4195        .61692E-04   -1.5363    
  22  Prefactor     13.532        23.624        .10887E-03   -1.4972    
  23  norm          11.460        4.1432        .92958E-04   -1.5031    
  24  Prefactor     13.519        8.1567        .10894E-03   -1.4972    
  25  norm          .10000E-03    3.6779        .14637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.715        19.610        .10444E-03   -1.4941    
  27  Normalizat    .74255        .18836        .25895E-03   -1.0224    
  28  Prefactor     1.2035        .22470        .25978E-03   -.86225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.87904e-10
Minuit parameter uncertainties:
  1  1.82808e-05
  2  0.308367
  3  0.000404705
  4  14.3482
  5  2.24997e-06
  6  5.60208e-06
  7  31.6343
  8  2.77201
  9  0.000157987
  10  3.94878e-06
  11  0.000109466
  12  2.20575e-05
  13  0.000257152
  14  39.9715
  15  1.31964
  16  9.10227
  17  23.4417
  18  2.2687
  19  9.07239e-06
  20  1.37238e-05
  21  1.41951
  22  23.64
  23  4.14328
  24  8.15738
  25  2.12049e-06
  26  19.6186
  27  0.188529
  28  0.22488
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  2.403e+00  1.320e+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.203e+00  2.249e-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.425e-01  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.27
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 8.03e-08 +/- 4.41e-08
Energy Flux (Fixed Index): 2.68e-05 +/- 1.47e-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) = 6119.10258394
delta logL = 1.65889582867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6118.87755667
delta logL = 1.88392309895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17628       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .58557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3636       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=   6118.878     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      309 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17627        1.0460        .24197E-02    .25465E-03
   2  alpha         5.0000        2.5028        .46417    ** at limit **
   3  Normalizat    .58556        .12908        .64980E-01    .18412E-04
   4  Prefactor     1.3636        .16520        .55819E-01    .77206E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.176269
  alpha      = 5
  Normalizat = 0.585558
  Prefactor  = 1.36364
 **********
 **   18 **HESSE 
 **********

 FCN=   6118.878     FROM HESSE     STATUS=OK            31 CALLS      340 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17627        .62460E-01    .10763E-04   -1.5624    
   2  alpha         5.0000        3.2975        .33422E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .58556        .18414        .28755E-03   -1.0860    
   4  Prefactor     1.3636        .22872        .24679E-03   -.81434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52022e-10
Minuit parameter uncertainties:
  1  0.0624596
  2  6.66784e-05
  3  0.184329
  4  0.228888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32519': 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) = 6118.87755646
delta logL = 1.88392329982

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.763e-01  6.246e-02  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  5.000e+00  6.668e-05  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.364e+00  2.289e-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.856e-01  1.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.03
Ra Dec: 176.740 39.977
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.64e-07 +/- 5.76e-08
Energy Flux (Free Index): 2.20e-05 +/- 7.78e-06

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/32519/cmap_HighResolution_350006401_350265601_4FGL_J1146.9+3958_daily_bin427.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.03e-08', energy_flux2='2.20e-05', photon_flux_error='4.41e-08', dlogl='1.88e+00', energy_flux='2.68e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-04 09:45:54.041492', photon_index_error2='0.00', photon_index2='5.00', ts='10.27', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='7.78e-06', EG='0.74', time_epoch_completed='1630773954.04', return_code='0', job_id='32519', GAL2='1.36', EG2='0.59', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='5.76e-08', ts2='15.03', photon_index='2.32' WHERE bin_id='427' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:45:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 32519: <4FGL_J1146.9+3958_daily_bin427> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin427> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 09:31:14 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:31: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:31:16 2021
Terminated at Sat Sep  4 09:45:54 2021
Results reported at Sat Sep  4 09:45:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin427 176.74 39.9775 350006401 350265601 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 :                                   742.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

