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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin253
RA = 176.74, Dec = 39.9775
tmin = 304905601, tmax = 305164801
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='31216', job_status='RUN', time_executed='2021-09-04 09:28:38.270817', time_epoch_executed='1630772918.27' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31216

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31216/ft1_4FGL_J1146.9+3958_daily_bin253.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31216/ft2_4FGL_J1146.9+3958_daily_bin253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31216/ft1_4FGL_J1146.9+3958_daily_bin253.fits outfile=/scratch/kocevski/31216/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin253.fits ra=176.74 dec=39.9775 rad=12.0 tmin=304905601.0 tmax=305164801.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.50
user 3.28
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31216/ft1_filtered_4FGL_J1146.9+3958_daily_bin253.fits evtable="EVENTS" scfile=/scratch/kocevski/31216/ft2_4FGL_J1146.9+3958_daily_bin253.fits sctable="SC_DATA" expcube=/scratch/kocevski/31216/ltcube_304905601_305164801_4FGL_J1146.9+3958_daily_bin253.fits outfile=/scratch/kocevski/31216/expmap_304905601_305164801_4FGL_J1146.9+3958_daily_bin253.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/31216/ltcube_304905601_305164801_4FGL_J1146.9+3958_daily_bin253.fits
.....................!
real 191.36
user 185.49
sys 5.48

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/31216/ft1_filtered_4FGL_J1146.9+3958_daily_bin253.fits scfile=/scratch/kocevski/31216/ft2_4FGL_J1146.9+3958_daily_bin253.fits outfile=/scratch/kocevski/31216/cmap_304905601_305164801_4FGL_J1146.9+3958_daily_bin253.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    143.12       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3804       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2479       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    34.252       1.0000         .10000E-03   10000.    
     7 'norm      '    .10612E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11383E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.421       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.238       1.0000         .10000E-03   10000.    
    11 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15295E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4235       1.0000         .10000E-03   10000.    
    16 'norm      '    7.6831       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4506       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.604       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    20.462       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.6269       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.1158       1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .86684       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0593       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=   6306.924     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3478 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     143.08        101.01       -.24065E-04    .12174E-04
   2  norm          1.3805        .37609        .66992E-08    .13661E-02
   3  Prefactor     4.2608        23.837       -.90159E-06    .29002E-04
   4  Prefactor     .10000E-03    8.7559       -.66023E-06** at limit **
   5  Prefactor     .10000E-03    31.744       -.27562E-04** at limit **
   6  norm          34.250        19.014        .17982E-05    .31981E-03
   7  norm          .10000E-03    21.446        .58789E-05** at limit **
   8  Prefactor     .10143E-03    1.4068       -.12386E-05** at limit **
   9  Prefactor     30.416        46.342       -.13444E-05    .38315E-03
  10  Prefactor     19.240        15.444        .27876E-06    .11352E-03
  11  norm          .10000E-03    1.5768        .17891E-07** at limit **
  12  Prefactor     .10000E-03    5.3166        .13253E-07** at limit **
  13  Prefactor     .10000E-03    2.3405        .35778E-07** at limit **
  14  Prefactor     .10000E-03    76.667        .19082E-04** at limit **
  15  norm          1.4242        .97371       -.10030E-06   -.33418E-03
  16  norm          7.6820        7.5996       -.47860E-06   -.11541E-04
  17  Prefactor     .10000E-03    166.78       -.24003E-04** at limit **
  18  Prefactor     6.4511        3.6231       -.19880E-06   -.14518E-03
  19  Prefactor     29.579        29.765       -.14457E-05    .41496E-05
  20  Prefactor     .10000E-03    10.661        .31771E-06** at limit **
  21  norm          20.465        2.7790       -.28458E-07    .53126E-03
  22  Prefactor     .10000E-03    29.015        .23705E-04** at limit **
  23  norm          5.6275        3.3517       -.11848E-07    .12419E-04
  24  Prefactor     6.1110        9.3571       -.31294E-05   -.19670E-03
  25  norm          .10000E-03    4.2547       -.43714E-07** at limit **
  26  Prefactor     .10000E-03    8.1547        .31201E-06** at limit **
  27  Normalizat    .86640        .17740        .29351E-05    .29438E-03
  28  Prefactor     1.0601        .20570       -.16338E-06    .32241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 143.085
  norm       = 1.38048
  Prefactor  = 4.26081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 34.2499
  norm       = 0.0001
  Prefactor  = 0.000101426
  Prefactor  = 30.4162
  Prefactor  = 19.2402
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.42423
  norm       = 7.68202
  Prefactor  = 0.0001
  Prefactor  = 6.45105
  Prefactor  = 29.5786
  Prefactor  = 0.0001
  norm       = 20.4647
  Prefactor  = 0.0001
  norm       = 5.62745
  Prefactor  = 6.11102
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.8664
  Prefactor  = 1.06013
 **********
 **   18 **HESSE 
 **********

 FCN=   6306.924     FROM HESSE     STATUS=OK           517 CALLS     3995 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     143.08        101.10        .16839E-03   -1.3310    
   2  norm          1.3805        .37621        .23397E-04   -1.5473    
   3  Prefactor     4.2608        23.353        .19550E-03   -1.5295    
   4  Prefactor     .10000E-03    8.7813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          34.250        18.843        .68471E-04   -1.4537    
   7  norm          .10000E-03    21.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10143E-03    25.301        .15873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.416        41.741        .72643E-04   -1.4604    
  10  Prefactor     19.240        15.450        .91317E-04   -1.4830    
  11  norm          .10000E-03    1.5993        .19350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3257        .17878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3554        .11858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    77.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4242        .96734        .61041E-04   -1.5469    
  16  norm          7.6820        7.6016        .14467E-03   -1.5154    
  17  Prefactor     .10000E-03    173.13        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.4511        3.6209        .10849E-03   -1.5200    
  19  Prefactor     29.579        29.815        .73636E-04   -1.4620    
  20  Prefactor     .10000E-03    10.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          20.465        2.7789        .47013E-04   -1.4803    
  22  Prefactor     .10000E-03    29.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.6275        3.3510        .10890E-03   -1.5233    
  24  Prefactor     6.1110        9.3883        .16234E-03   -1.5214    
  25  norm          .10000E-03    4.2693        .15997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.1623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .86640        .20784        .26195E-03   -.97651    
  28  Prefactor     1.0601        .24209        .29150E-03   -.90751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.424e-08
Minuit parameter uncertainties:
  1  101.226
  2  0.376212
  3  19.9619
  4  2.61989e-06
  5  1.46527e-06
  6  18.8467
  7  4.98988e-06
  8  0.0120171
  9  41.7812
  10  15.4536
  11  7.86214e-06
  12  8.79684e-06
  13  4.9114e-07
  14  9.93712e-05
  15  0.967353
  16  7.60253
  17  0.000445824
  18  3.62107
  19  29.8304
  20  9.2486e-06
  21  2.77895
  22  6.1548e-06
  23  3.35115
  24  9.39053
  25  7.11704e-06
  26  8.98652e-06
  27  0.208036
  28  0.242337
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.424e+00  9.674e-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.060e+00  2.423e-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  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.97
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.76e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.08e-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) = 6306.8769152
delta logL = 0.047344691262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6306.87277023
delta logL = 0.0514896559507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3573       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5707       1.0000          .0000       5.0000    
     3 'Normalizat'    .85172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0718       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=   6306.873     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3574        17.023        .93773E-02    .36412E-03
   2  alpha         2.5707        3.2819        .41172        .24293E-04
   3  Normalizat    .85175        .71615E-01    .44282E-01    .16502E-04
   4  Prefactor     1.0717        .72919E-01    .65587E-01    .96245E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.35739
  alpha      = 2.57072
  Normalizat = 0.851753
  Prefactor  = 1.07173
 **********
 **   18 **HESSE 
 **********

 FCN=   6306.873     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3574        .96073        .56456E-04   -1.5475    
   2  alpha         2.5707        .79451        .17244E-01    .28292E-01
   3  Normalizat    .85175        .20427        .26394E-03   -.98177    
   4  Prefactor     1.0717        .24458        .29011E-03   -.90375    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89644e-10
Minuit parameter uncertainties:
  1  0.960746
  2  0.808546
  3  0.204458
  4  0.244836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31216': 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) = 6306.87277019
delta logL = 0.0514896935038

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.357e+00  9.607e-01  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.571e+00  8.085e-01  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  6.653e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  5.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.072e+00  2.448e-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.518e-01  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.05
Ra Dec: 176.740 39.977
Photon Index (Free Index): 2.57 +/- 0.81
Photon Flux (Free Index): 5.75e-08 +/- 4.65e-08
Energy Flux (Free Index): 1.52e-05 +/- 9.85e-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/31216/cmap_HighResolution_304905601_305164801_4FGL_J1146.9+3958_daily_bin253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.76e-08', energy_flux2='1.52e-05', photon_flux_error='3.23e-08', dlogl='5.15e-02', energy_flux='1.59e-05', photon_flux2='5.75e-08', job_status='DONE', time_completed='2021-09-04 09:41:53.147713', photon_index_error2='0.81', photon_index2='2.57', ts='4.97', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='9.85e-06', EG='0.87', time_epoch_completed='1630773713.15', return_code='0', job_id='31216', GAL2='1.07', EG2='0.85', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.65e-08', ts2='5.05', photon_index='2.32' WHERE bin_id='253' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:41:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 31216: <4FGL_J1146.9+3958_daily_bin253> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin253 176.74 39.9775 304905601 305164801 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 :                                   792.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

