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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin411
RA = 176.74, Dec = 39.9775
tmin = 345859201, tmax = 346118401
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='32495', job_status='RUN', time_executed='2021-09-04 09:33:52.550482', time_epoch_executed='1630773232.55' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32495

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32495/ft1_4FGL_J1146.9+3958_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32495/ft2_4FGL_J1146.9+3958_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32495/ft1_4FGL_J1146.9+3958_daily_bin411.fits outfile=/scratch/kocevski/32495/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin411.fits ra=176.74 dec=39.9775 rad=12.0 tmin=345859201.0 tmax=346118401.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.37
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/32495/ft1_filtered_4FGL_J1146.9+3958_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/32495/ft2_4FGL_J1146.9+3958_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/32495/ltcube_345859201_346118401_4FGL_J1146.9+3958_daily_bin411.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/32495/ft2_4FGL_J1146.9+3958_daily_bin411.fits
.....................!
real 12.46
user 12.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32495/ft1_filtered_4FGL_J1146.9+3958_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/32495/ft2_4FGL_J1146.9+3958_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/32495/ltcube_345859201_346118401_4FGL_J1146.9+3958_daily_bin411.fits outfile=/scratch/kocevski/32495/expmap_345859201_346118401_4FGL_J1146.9+3958_daily_bin411.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/32495/ltcube_345859201_346118401_4FGL_J1146.9+3958_daily_bin411.fits
.....................!
real 193.07
user 187.78
sys 4.91

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/32495/ft1_filtered_4FGL_J1146.9+3958_daily_bin411.fits scfile=/scratch/kocevski/32495/ft2_4FGL_J1146.9+3958_daily_bin411.fits outfile=/scratch/kocevski/32495/cmap_345859201_346118401_4FGL_J1146.9+3958_daily_bin411.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32495/ft1_filtered_4FGL_J1146.9+3958_daily_bin411.fits scfile=/scratch/kocevski/32495/ft2_4FGL_J1146.9+3958_daily_bin411.fits outfile=/scratch/kocevski/32495/cmap_HighResolution_345859201_346118401_4FGL_J1146.9+3958_daily_bin411.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/32495/ft1_filtered_4FGL_J1146.9+3958_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/32495/ft2_4FGL_J1146.9+3958_daily_bin411.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/32495/Model_4FGL_J1146.9+3958_daily_bin411.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/32495/ft1_filtered_4FGL_J1146.9+3958_daily_bin411.fits.....................!
real 52.84
user 51.55
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.5111       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1120       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.2210       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6120       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.482       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3692       1.0000         .10000E-03   10000.    
    16 'norm      '    11.794       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.242       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22567E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.372       1.0000         .10000E-03   10000.    
    21 'norm      '    1.7524       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.417       1.0000         .10000E-03   10000.    
    23 'norm      '    2.5593       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .67748       1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.110       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3230       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .50839       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=   5998.711     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3494 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.001        .30915E-05** at limit **
   2  norm          1.5111        .34547        .21449E-08   -.51742E-04
   3  Prefactor     5.1119        7.8962        .53798E-07   -.18497E-04
   4  Prefactor     .10000E-03    6.0462        .12346E-07** at limit **
   5  Prefactor     .10000E-03    27.818       -.23250E-05** at limit **
   6  norm          3.2210        7.3751        .22896E-06   -.56260E-04
   7  norm          .10000E-03    18.320       -.20193E-05** at limit **
   8  Prefactor     .10000E-03    .62041       -.12325E-07** at limit **
   9  Prefactor     .10000E-03    9.8165        .13603E-06** at limit **
  10  Prefactor     5.6130        13.177        .46179E-07   -.34636E-05
  11  norm          .10000E-03    1.1472        .19855E-07** at limit **
  12  Prefactor     .10000E-03    11.473       -.93267E-06** at limit **
  13  Prefactor     18.483        6.4306       -.83866E-07   -.10340E-03
  14  Prefactor     .10000E-03    62.106       -.80143E-06** at limit **
  15  norm          1.3693        .89583        .32311E-07   -.64239E-05
  16  norm          11.794        8.1400        .30707E-08    .44966E-05
  17  Prefactor     31.245        27.680        .31046E-06    .29083E-04
  18  Prefactor     .10000E-03    1.9300        .28143E-06** at limit **
  19  Prefactor     .10000E-03    16.827        .20006E-05** at limit **
  20  Prefactor     16.354        18.829       -.11760E-06   -.11337E-03
  21  norm          1.7525        1.0807        .24888E-08    .97478E-05
  22  Prefactor     25.420        24.802        .19285E-06    .31935E-04
  23  norm          2.5593        2.6196        .39844E-07   -.67336E-04
  24  Prefactor     .67731        5.9830        .19605E-05   -.36075E-03
  25  norm          .10000E-03    3.6671       -.28230E-07** at limit **
  26  Prefactor     21.114        18.603        .20838E-06    .17222E-04
  27  Normalizat    1.3229        .16977       -.21335E-06   -.10710E-03
  28  Prefactor     .50852        .19027       -.18405E-06   -.75513E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 1.51107
  Prefactor  = 5.11194
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.22096
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.61299
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4826
  Prefactor  = 0.0001
  norm       = 1.36925
  norm       = 11.794
  Prefactor  = 31.2453
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 16.3535
  norm       = 1.75249
  Prefactor  = 25.4205
  norm       = 2.55934
  Prefactor  = 0.67731
  norm       = 0.0001
  Prefactor  = 21.1135
  Normalizat = 1.32289
  Prefactor  = 0.508521
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.711     FROM HESSE     STATUS=OK           523 CALLS     4017 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5111        .34601        .20789E-04   -1.5462    
   3  Prefactor     5.1119        7.8932        .17782E-03   -1.5256    
   4  Prefactor     .10000E-03    6.0540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.2210        7.3724        .22572E-03   -1.5349    
   7  norm          .10000E-03    18.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .62721        .59530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.6130        13.140        .16958E-03   -1.5234    
  11  norm          .10000E-03    2.0815        .16013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.483        6.4374        .93165E-04   -1.4848    
  14  Prefactor     .10000E-03    62.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3693        .88696        .56610E-04   -1.5474    
  16  norm          11.794        8.1404        .11665E-03   -1.5021    
  17  Prefactor     31.245        27.777        .71684E-04   -1.4589    
  18  Prefactor     .10000E-03    11.961        .19465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.354        18.093        .98985E-04   -1.4899    
  21  norm          1.7525        1.0801        .31668E-04   -1.5443    
  22  Prefactor     25.420        24.882        .79458E-04   -1.4699    
  23  norm          2.5593        2.6070        .12331E-03   -1.5388    
  24  Prefactor     .67731        8.5760        .43238E-03   -1.5543    
  25  norm          .10000E-03    3.6726        .14483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.114        18.612        .87177E-04   -1.4789    
  27  Normalizat    1.3229        .19401        .20499E-03   -.82886    
  28  Prefactor     .50852        .21396        .36335E-03   -1.1159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52591e-10
Minuit parameter uncertainties:
  1  0.0004405
  2  0.346014
  3  7.89476
  4  1.11019e-06
  5  0.000315488
  6  7.37451
  7  0.000222421
  8  6.70702e-08
  9  1.16121e-05
  10  13.147
  11  3.21255e-06
  12  7.22694e-05
  13  6.43767
  14  0.000167866
  15  0.886968
  16  8.14113
  17  27.7884
  18  0.000425568
  19  0.000211341
  20  18.0987
  21  1.08014
  22  24.8926
  23  2.60716
  24  4.82072
  25  2.04687e-06
  26  18.6168
  27  0.194115
  28  0.214296
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.369e+00  8.870e-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:  5.085e-01  2.143e-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.323e+00  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.58e-08 +/- 2.96e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 9.89e-06

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) = 5998.4718448
delta logL = 0.238692452213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5998.45302809
delta logL = 0.257509157581

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1512       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0408       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2714       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54831       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=   5998.453     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1511        8.0770        .96050E-02    .53794E-03
   2  alpha         3.0412        4.0044        .41462        .49814E-04
   3  Normalizat    1.2714        .52150E-01    .33338E-01    .69443E-06
   4  Prefactor     .54827        .54395E-01    .79259E-01    .31430E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15106
  alpha      = 3.04121
  Normalizat = 1.27136
  Prefactor  = 0.548269
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.453     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1511        1.1939        .43133E-04   -1.5493    
   2  alpha         3.0412        1.1863        .14767E-01    .21821    
   3  Normalizat    1.2714        .20364        .20824E-03   -.84425    
   4  Prefactor     .54827        .22460        .35104E-03   -1.0981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59084e-11
Minuit parameter uncertainties:
  1  1.19397
  2  1.23877
  3  0.203768
  4  0.224967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32495': 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) = 5998.45302789
delta logL = 0.257509363522

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.151e+00  1.194e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  3.041e+00  1.239e+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:  5.483e-01  2.250e-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.271e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 176.740 39.977
Photon Index (Free Index): 3.04 +/- 1.24
Photon Flux (Free Index): 8.15e-08 +/- 6.28e-08
Energy Flux (Free Index): 1.62e-05 +/- 8.80e-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/32495/cmap_HighResolution_345859201_346118401_4FGL_J1146.9+3958_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.58e-08', energy_flux2='1.62e-05', photon_flux_error='2.96e-08', dlogl='2.58e-01', energy_flux='1.53e-05', photon_flux2='8.15e-08', job_status='DONE', time_completed='2021-09-04 09:46:44.809639', photon_index_error2='1.24', photon_index2='3.04', ts='4.99', fit_tolerance='1e-08', GAL='0.51', photon_index_error='0.00', energy_flux_error2='8.80e-06', EG='1.32', time_epoch_completed='1630774004.81', return_code='0', job_id='32495', GAL2='0.55', EG2='1.27', return_code2='0', energy_flux_error='9.89e-06', photon_flux_error2='6.28e-08', ts2='5.52', photon_index='2.32' WHERE bin_id='411' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:46:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 32495: <4FGL_J1146.9+3958_daily_bin411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin411 176.74 39.9775 345859201 346118401 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 :                                   771.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

