/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 75 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 = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1146.9+3958_daily_bin26
RA = 176.74, Dec = 39.9775
tmin = 246067201, tmax = 246326401
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='28456', job_status='RUN', time_executed='2021-09-04 09:18:01.589797', time_epoch_executed='1630772281.59' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28456/ft1_4FGL_J1146.9+3958_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28456/ft2_4FGL_J1146.9+3958_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28456/ft1_4FGL_J1146.9+3958_daily_bin26.fits outfile=/scratch/kocevski/28456/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin26.fits ra=176.74 dec=39.9775 rad=12.0 tmin=246067201.0 tmax=246326401.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 1.50
user 1.30
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28456/ft2_4FGL_J1146.9+3958_daily_bin26.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/28456/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin26.fits evtable="EVENTS" outfile="/scratch/kocevski/28456/ft1_filtered_4FGL_J1146.9+3958_daily_bin26.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28456/ft1_filtered_4FGL_J1146.9+3958_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/28456/ft2_4FGL_J1146.9+3958_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/28456/ltcube_246067201_246326401_4FGL_J1146.9+3958_daily_bin26.fits outfile=/scratch/kocevski/28456/expmap_246067201_246326401_4FGL_J1146.9+3958_daily_bin26.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/28456/ltcube_246067201_246326401_4FGL_J1146.9+3958_daily_bin26.fits
.....................!
real 191.74
user 186.21
sys 5.15

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/28456/ft1_filtered_4FGL_J1146.9+3958_daily_bin26.fits scfile=/scratch/kocevski/28456/ft2_4FGL_J1146.9+3958_daily_bin26.fits outfile=/scratch/kocevski/28456/cmap_246067201_246326401_4FGL_J1146.9+3958_daily_bin26.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.57
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.740       1.0000         .10000E-03   10000.    
     2 'norm      '    .80898       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0897       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.2921       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11299E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.551       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42351E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14348E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    15.934       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0154       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12335E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.9231       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    19.248       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.4006       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .86683       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2321       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=   6778.934     FROM MIGRAD    STATUS=CONVERGED    736 CALLS     3191 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.786        69.381        .97092E-04    .91261E-05
   2  norm          .80912        .28088        .38726E-07    .45332E-03
   3  Prefactor     .10000E-03    6.9091        .19109E-06** at limit **
   4  Prefactor     2.0962        16.279       -.55546E-05   -.14872E-03
   5  Prefactor     .10000E-03    19.490        .49742E-06** at limit **
   6  norm          6.2950        12.748       -.86169E-06    .60946E-04
   7  norm          .10000E-03    12.396        .12225E-05** at limit **
   8  Prefactor     .10000E-03    1.1701       -.89630E-06** at limit **
   9  Prefactor     25.543        31.821        .12446E-04    .48053E-03
  10  Prefactor     .30447        14.029       -.19244E-06   -.85309E-04
  11  norm          .12337        1.1055       -.11027E-05    .78092E-03
  12  Prefactor     .10000E-03    13.051        .94687E-05** at limit **
  13  Prefactor     .10000E-03    2.4442        .84783E-07** at limit **
  14  Prefactor     .10000E-03    43.160       -.59197E-05** at limit **
  15  norm          .14906E-01    .35322       -.40531E-07    .48170E-03
  16  norm          15.935        9.7014       -.26254E-06    .61285E-04
  17  Prefactor     .10000E-03    13.796       -.82110E-05** at limit **
  18  Prefactor     .10000E-03    2.7651        .14193E-06** at limit **
  19  Prefactor     .10000E-03    12.313       -.28876E-05** at limit **
  20  Prefactor     .10000E-03    40.309        .17315E-05** at limit **
  21  norm          3.0155        1.1679        .63252E-07   -.57735E-04
  22  Prefactor     .10000E-03    45.183        .44724E-05** at limit **
  23  norm          7.9239        3.0370        .71277E-07    .63706E-04
  24  Prefactor     .10000E-03    4.7678       -.32860E-07** at limit **
  25  norm          19.247        14.538       -.22189E-05   -.14828E-03
  26  Prefactor     4.4055        39.431        .16281E-04   -.17472E-04
  27  Normalizat    .86638        .15479       -.31435E-05    .55277E-03
  28  Prefactor     1.2321        .18739       -.11376E-06    .26991E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.786
  norm       = 0.809118
  Prefactor  = 0.0001
  Prefactor  = 2.09623
  Prefactor  = 0.0001
  norm       = 6.29505
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 25.5427
  Prefactor  = 0.304468
  norm       = 0.123372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0149059
  norm       = 15.9353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.01552
  Prefactor  = 0.0001
  norm       = 7.92389
  Prefactor  = 0.0001
  norm       = 19.2473
  Prefactor  = 4.40552
  Normalizat = 0.86638
  Prefactor  = 1.23211
 **********
 **   18 **HESSE 
 **********

 FCN=   6778.934     FROM HESSE     STATUS=OK           525 CALLS     3716 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.786        68.138        .10095E-03   -1.4913    
   2  norm          .80912        .28129        .23885E-04   -1.5528    
   3  Prefactor     .10000E-03    6.9274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0962        16.347        .28558E-03   -1.5418    
   5  Prefactor     .10000E-03    19.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.2950        12.710        .16002E-03   -1.5206    
   7  norm          .10000E-03    12.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3182        .16068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.543        31.211        .79250E-04   -1.4697    
  10  Prefactor     .30447        15.901        .84732E-01   -1.5598    
  11  norm          .12337        7.7703        .15507E-02   -1.5638    
  12  Prefactor     .10000E-03    13.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4863        .12556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    43.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .14906E-01    4.8364        .93381E-03   -1.5684    
  16  norm          15.935        9.7044        .10034E-03   -1.4909    
  17  Prefactor     .10000E-03    13.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8674        .26699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.0155        1.1675        .53627E-04   -1.5361    
  22  Prefactor     .10000E-03    46.839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.9239        3.0373        .86519E-04   -1.5145    
  24  Prefactor     .10000E-03    4.9917        .35103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          19.247        14.336        .91293E-04   -1.4830    
  26  Prefactor     4.4055        38.206        .19198E-03   -1.5288    
  27  Normalizat    .86638        .18153        .24546E-03   -.97652    
  28  Prefactor     1.2321        .22267        .25996E-03   -.85349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80166e-09
Minuit parameter uncertainties:
  1  65.7203
  2  0.28129
  3  3.98501e-05
  4  11.7118
  5  1.26186e-06
  6  12.7155
  7  9.28218e-07
  8  0.000186931
  9  31.2314
  10  4.40112
  11  1.95767
  12  3.07665e-05
  13  1.03777e-05
  14  0.000184426
  15  0.535237
  16  9.70532
  17  6.82361e-05
  18  2.37735e-05
  19  1.20341e-05
  20  0.000188697
  21  1.16755
  22  0.000125081
  23  3.03733
  24  2.26061e-05
  25  14.3385
  26  25.9693
  27  0.181655
  28  0.222839
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.491e-02  5.352e-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:  1.232e+00  2.228e-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:  8.664e-01  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/28456/likelihoodResults_246067201_246326401_4FGL_J1146.9+3958_daily_bin26.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): 102
logL (Free Index) = 6778.92413626
delta logL = 0.0103100898477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6778.84982034
delta logL = 0.0846260123517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15693       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5867       1.0000          .0000       5.0000    
     3 'Normalizat'    .87057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2234       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=   6778.850     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15654        .47450        .20985E-01    .25683E-02
   2  alpha         1.5872        .91835        .45312       -.38074E-04
   3  Normalizat    .87055        .14928        .44524E-01    .18180E-04
   4  Prefactor     1.2234        .18621        .58958E-01    .74301E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.156536
  alpha      = 1.5872
  Normalizat = 0.870551
  Prefactor  = 1.22337
 **********
 **   18 **HESSE 
 **********

 FCN=   6778.850     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15654        .43913        .88020E-04   -1.5629    
   2  alpha         1.5872        1.1114        .29937E-01   -.37376    
   3  Normalizat    .87055        .17671        .24493E-03   -.97503    
   4  Prefactor     1.2234        .22040        .26073E-03   -.85615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95212e-09
Minuit parameter uncertainties:
  1  0.439139
  2  1.15866
  3  0.176822
  4  0.220566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28456': 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) = 6778.84981932
delta logL = 0.0846270315087

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.565e-01  4.391e-01  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  1.587e+00  1.159e+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:  1.223e+00  2.206e-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:  8.706e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/28456/cmap_HighResolution_246067201_246326401_4FGL_J1146.9+3958_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-05', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2021-09-04 09:32:58.257731', job_id='28456', GAL2='1.22', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1630773178.26', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='8.46e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='26' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:32:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 28456: <4FGL_J1146.9+3958_daily_bin26> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin26> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 09:16:33 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:16:34 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:16:34 2021
Terminated at Sat Sep  4 09:32:58 2021
Results reported at Sat Sep  4 09:32:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin26 176.74 39.9775 246067201 246326401 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 :                                   896.26 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             335.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            985 sec.

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

