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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin215
RA = 176.74, Dec = 39.9775
tmin = 295056001, tmax = 295315201
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='29824', job_status='RUN', time_executed='2021-09-04 09:21:34.490528', time_epoch_executed='1630772494.49' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29824

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29824/ft1_4FGL_J1146.9+3958_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29824/ft2_4FGL_J1146.9+3958_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29824/ft1_4FGL_J1146.9+3958_daily_bin215.fits outfile=/scratch/kocevski/29824/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin215.fits ra=176.74 dec=39.9775 rad=12.0 tmin=295056001.0 tmax=295315201.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 2.56
user 2.39
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29824/ft1_filtered_4FGL_J1146.9+3958_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/29824/ft2_4FGL_J1146.9+3958_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/29824/ltcube_295056001_295315201_4FGL_J1146.9+3958_daily_bin215.fits outfile=/scratch/kocevski/29824/expmap_295056001_295315201_4FGL_J1146.9+3958_daily_bin215.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/29824/ltcube_295056001_295315201_4FGL_J1146.9+3958_daily_bin215.fits
.....................!
real 191.34
user 186.32
sys 4.64

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/29824/ft1_filtered_4FGL_J1146.9+3958_daily_bin215.fits scfile=/scratch/kocevski/29824/ft2_4FGL_J1146.9+3958_daily_bin215.fits outfile=/scratch/kocevski/29824/cmap_295056001_295315201_4FGL_J1146.9+3958_daily_bin215.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.58
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29824/ft1_filtered_4FGL_J1146.9+3958_daily_bin215.fits scfile=/scratch/kocevski/29824/ft2_4FGL_J1146.9+3958_daily_bin215.fits outfile=/scratch/kocevski/29824/cmap_HighResolution_295056001_295315201_4FGL_J1146.9+3958_daily_bin215.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.57
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7874       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.559       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12445E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    35.038       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2988       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.931       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .16495       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.369       1.0000         .10000E-03   10000.    
    15 'norm      '    .38449       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.845       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.005       1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.261       1.0000         .10000E-03   10000.    
    21 'norm      '    .10844E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.6326       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.807       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1545       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .83130       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=   5598.294     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3539 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.974        .52435E-06** at limit **
   2  norm          1.7874        .40572       -.57242E-08    .82571E-03
   3  Prefactor     .10000E-03    26.172       -.24365E-05** at limit **
   4  Prefactor     19.559        15.789       -.17673E-06    .84935E-04
   5  Prefactor     .10000E-03    187.86        .39573E-06** at limit **
   6  norm          35.041        16.248       -.19415E-06    .10958E-03
   7  norm          3.2788        152.02       -.34222E-05   -.99303E-05
   8  Prefactor     .10000E-03    1.1655        .61098E-07** at limit **
   9  Prefactor     38.952        32.686       -.84450E-07    .36592E-04
  10  Prefactor     .10000E-03    6.7992       -.32740E-06** at limit **
  11  norm          .14803        1.2918       -.20421E-07   -.94760E-04
  12  Prefactor     .10000E-03    3.6424       -.17995E-07** at limit **
  13  Prefactor     .10000E-03    3.7388       -.18984E-06** at limit **
  14  Prefactor     23.414        36.348       -.25013E-06    .15157E-04
  15  norm          .38316        .74327        .84290E-06    .56155E-04
  16  norm          .10000E-03    6.9648        .52159E-06** at limit **
  17  Prefactor     24.844        22.874        .14038E-06   -.21414E-04
  18  Prefactor     .10000E-03    2.7190        .16951E-06** at limit **
  19  Prefactor     11.027        41.217       -.17499E-05   -.15863E-04
  20  Prefactor     43.250        24.703        .41356E-06    .95497E-05
  21  norm          .10001E-03    .57800       -.17518E-07** at limit **
  22  Prefactor     .10000E-03    24.351        .17289E-05** at limit **
  23  norm          8.6326        3.8726        .19429E-07   -.23172E-04
  24  Prefactor     .10000E-03    3.7605        .17654E-06** at limit **
  25  norm          .10000E-03    4.5364        .30226E-07** at limit **
  26  Prefactor     14.808        23.205        .23158E-06   -.40968E-05
  27  Normalizat    1.1545        .17854       -.10643E-05    .49302E-04
  28  Prefactor     .83159        .20611        .49265E-06   -.31526E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.78741
  Prefactor  = 0.0001
  Prefactor  = 19.5593
  Prefactor  = 0.0001
  norm       = 35.0408
  norm       = 3.27884
  Prefactor  = 0.0001
  Prefactor  = 38.9516
  Prefactor  = 0.0001
  norm       = 0.148033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4139
  norm       = 0.383156
  norm       = 0.0001
  Prefactor  = 24.8442
  Prefactor  = 0.0001
  Prefactor  = 11.0272
  Prefactor  = 43.2499
  norm       = 0.000100013
  Prefactor  = 0.0001
  norm       = 8.63261
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.8082
  Normalizat = 1.15445
  Prefactor  = 0.831586
 **********
 **   18 **HESSE 
 **********

 FCN=   5598.294     FROM HESSE     STATUS=OK           523 CALLS     4062 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7874        .40713        .21377E-04   -1.5441    
   3  Prefactor     .10000E-03    26.549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.559        15.811        .90563E-04   -1.4823    
   5  Prefactor     .10000E-03    188.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          35.041        16.199        .67701E-04   -1.4523    
   7  norm          3.2788        154.05        .22291E-03   -1.5346    
   8  Prefactor     .10000E-03    1.1855        .15702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.952        32.938        .64239E-04   -1.4459    
  10  Prefactor     .10000E-03    6.8224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .14803        7.8337        .15539E-02   -1.5631    
  12  Prefactor     .10000E-03    3.6529        .13946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7888        .14111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.414        36.634        .82860E-04   -1.4740    
  15  norm          .38316        .74768        .91365E-03   -1.5584    
  16  norm          .10000E-03    6.9606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.844        22.849        .80366E-04   -1.4711    
  18  Prefactor     .10000E-03    2.7500        .11990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.027        41.162        .12077E-03   -1.5044    
  20  Prefactor     43.250        24.631        .60951E-04   -1.4392    
  21  norm          .10001E-03    17.014        .10941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.6326        3.8702        .95866E-04   -1.5120    
  24  Prefactor     .10000E-03    3.7773        .14176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.5403        .15558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.808        23.207        .10409E-03   -1.4938    
  27  Normalizat    1.1545        .20187        .22597E-03   -.88022    
  28  Prefactor     .83159        .23394        .31095E-03   -.98574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45806e-08
Minuit parameter uncertainties:
  1  5.51426e-05
  2  0.407133
  3  4.30794e-05
  4  15.8145
  5  0.000282284
  6  16.2011
  7  45.0721
  8  3.30345e-07
  9  32.9536
  10  4.77409e-06
  11  2.1533
  12  2.0543e-06
  13  2.1981e-06
  14  36.6694
  15  0.747696
  16  1.38748e-05
  17  22.8568
  18  1.11129e-05
  19  41.2683
  20  24.6368
  21  0.000943373
  22  0.000119663
  23  3.87035
  24  7.31492e-06
  25  1.20616e-06
  26  23.2206
  27  0.20201
  28  0.234217
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  3.832e-01  7.477e-01  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.316e-01  2.342e-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:  1.154e+00  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/29824/likelihoodResults_295056001_295315201_4FGL_J1146.9+3958_daily_bin215.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) = 5598.27632966
delta logL = 0.0176753962905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5598.27582246
delta logL = 0.0181825933769

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40459       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1195       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83000       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=   5598.276     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      201 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40447        .99654        .19903E-01   -.66138E-03
   2  alpha         2.1207        1.1878        .41771E-01   -.10407E-04
   3  Normalizat    1.1563        .17138        .36064E-01    .91085E-05
   4  Prefactor     .83003        .20462        .70333E-01    .16927E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.404474
  alpha      = 2.12066
  Normalizat = 1.15628
  Prefactor  = 0.830027
 **********
 **   18 **HESSE 
 **********

 FCN=   5598.276     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40447        .72975        .93615E-03   -1.5581    
   2  alpha         2.1207        1.0050        .16708E-02   -.15232    
   3  Normalizat    1.1563        .19476        .22581E-03   -.87965    
   4  Prefactor     .83003        .23213        .31120E-03   -.98631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45717e-10
Minuit parameter uncertainties:
  1  0.729765
  2  1.03495
  3  0.194878
  4  0.232405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29824': 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) = 5598.27582177
delta logL = 0.0181832833696

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  4.045e-01  7.298e-01  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.121e+00  1.035e+00  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.300e-01  2.324e-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:  1.156e+00  1.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
Ra Dec: 176.740 39.977

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/29824/cmap_HighResolution_295056001_295315201_4FGL_J1146.9+3958_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-05', job_status='DONE', photon_flux_upper_limit='7.78e-08', time_completed='2021-09-04 09:35:39.666492', job_id='29824', GAL2='0.83', fit_tolerance='1e-08', EG2='1.16', EG='1.15', time_epoch_completed='1630773339.67', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.82e-02', ts2='0.42', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='215' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:35:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 29824: <4FGL_J1146.9+3958_daily_bin215> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin215> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 09:21:16 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:21:18 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:18 2021
Terminated at Sat Sep  4 09:35:40 2021
Results reported at Sat Sep  4 09:35:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin215 176.74 39.9775 295056001 295315201 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 :                                   844.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             303.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

