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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin244
RA = 176.74, Dec = 39.9775
tmin = 302572801, tmax = 302832001
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='31202', job_status='RUN', time_executed='2021-09-04 09:26:36.592705', time_epoch_executed='1630772796.59' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/31202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/31202/ft1_4FGL_J1146.9+3958_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/31202/ft2_4FGL_J1146.9+3958_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/31202/ft1_4FGL_J1146.9+3958_daily_bin244.fits outfile=/scratch/kocevski/31202/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin244.fits ra=176.74 dec=39.9775 rad=12.0 tmin=302572801.0 tmax=302832001.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.52
user 3.30
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/31202/ft1_filtered_4FGL_J1146.9+3958_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/31202/ft2_4FGL_J1146.9+3958_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/31202/ltcube_302572801_302832001_4FGL_J1146.9+3958_daily_bin244.fits outfile=/scratch/kocevski/31202/expmap_302572801_302832001_4FGL_J1146.9+3958_daily_bin244.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/31202/ltcube_302572801_302832001_4FGL_J1146.9+3958_daily_bin244.fits
.....................!
real 191.61
user 185.51
sys 5.51

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/31202/ft1_filtered_4FGL_J1146.9+3958_daily_bin244.fits scfile=/scratch/kocevski/31202/ft2_4FGL_J1146.9+3958_daily_bin244.fits outfile=/scratch/kocevski/31202/cmap_302572801_302832001_4FGL_J1146.9+3958_daily_bin244.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/31202/ft1_filtered_4FGL_J1146.9+3958_daily_bin244.fits scfile=/scratch/kocevski/31202/ft2_4FGL_J1146.9+3958_daily_bin244.fits outfile=/scratch/kocevski/31202/cmap_HighResolution_302572801_302832001_4FGL_J1146.9+3958_daily_bin244.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/31202/ft1_filtered_4FGL_J1146.9+3958_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/31202/ft2_4FGL_J1146.9+3958_daily_bin244.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/31202/Model_4FGL_J1146.9+3958_daily_bin244.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/31202/ft1_filtered_4FGL_J1146.9+3958_daily_bin244.fits.....................!
real 55.93
user 54.60
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5670       1.0000         .10000E-03   10000.    
     2 'norm      '    .71175       1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.171       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17378E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.470       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28093       1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.462       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.8113       1.0000         .10000E-03   10000.    
    11 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12638E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14970E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0046       1.0000         .10000E-03   10000.    
    16 'norm      '    13.680       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10641E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.3193       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.577       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.451       1.0000         .10000E-03   10000.    
    25 'norm      '    .14432E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    40.192       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2843       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .69152       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6507.101     FROM MIGRAD    STATUS=CONVERGED   1245 CALLS     4656 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5417        651.78        .25478E-03   -.11066E-04
   2  norm          .71134        .38219        .29153E-04    .32094E-03
   3  Prefactor     38.129        27.661        .64872E-04   -.20504E-04
   4  Prefactor     .66295E-01    35.640        .91642E-01    .10714E-03
   5  Prefactor     .10000E-03    33.437        .18142E-02** at limit **
   6  norm          14.470        15.500        .10529E-03   -.60140E-04
   7  norm          .10000E-03    23.707        .18142E-02** at limit **
   8  Prefactor     .27407        8.0280        .17816E-02    .14188E-03
   9  Prefactor     58.499        50.595        .26235E-03   -.11098E-03
  10  Prefactor     8.8178        16.216        .13503E-03    .31067E-04
  11  norm          .10000E-03    1.6478        .19917E-03** at limit **
  12  Prefactor     .10000E-03    23.232        .18142E-02** at limit **
  13  Prefactor     .10000E-03    1.3793        .92393E-03** at limit **
  14  Prefactor     .10000E-03    62.946        .18142E-02** at limit **
  15  norm          2.0038        1.0438        .29247E-04   -.11095E-02
  16  norm          13.678        9.2344        .10829E-03   -.19631E-04
  17  Prefactor     .10000E-03    17.845        .18142E-02** at limit **
  18  Prefactor     .10000E-03    .67799        .64781E-03** at limit **
  19  Prefactor     .10000E-03    14.592        .18142E-02** at limit **
  20  Prefactor     .10000E-03    8.6648        .18142E-02** at limit **
  21  norm          7.3192        1.9039        .54724E-04   -.10537E-03
  22  Prefactor     .10000E-03    13.529        .18142E-02** at limit **
  23  norm          15.575        5.2467        .10148E-03   -.48844E-04
  24  Prefactor     22.448        10.313        .42267E-03   -.98927E-04
  25  norm          .10000E-03    43.517        .44982E-02** at limit **
  26  Prefactor     40.179        30.879        .63227E-04    .93608E-04
  27  Normalizat    1.2848        .20810        .23310E-03   -.10683E-03
  28  Prefactor     .69098        .22962        .34840E-03   -.12527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54166
  norm       = 0.711342
  Prefactor  = 38.1293
  Prefactor  = 0.0662953
  Prefactor  = 0.0001
  norm       = 14.4699
  norm       = 0.0001
  Prefactor  = 0.274067
  Prefactor  = 58.4993
  Prefactor  = 8.81776
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.00379
  norm       = 13.6783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.31919
  Prefactor  = 0.0001
  norm       = 15.5748
  Prefactor  = 22.448
  norm       = 0.0001
  Prefactor  = 40.1794
  Normalizat = 1.28485
  Prefactor  = 0.690983
 **********
 **   18 **HESSE 
 **********

 FCN=   6507.101     FROM HESSE     STATUS=OK           503 CALLS     5159 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5417        653.04        .10191E-04   -1.5389    
   2  norm          .71134        .38037        .11661E-05   -1.5539    
   3  Prefactor     38.129        27.587        .25949E-05   -1.4472    
   4  Prefactor     .66295E-01    32.086        .96895E-01   -1.5657    
   5  Prefactor     .10000E-03    33.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.470        15.492        .42117E-05   -1.4947    
   7  norm          .10000E-03    23.707        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .27407        7.4885        .71265E-04   -1.5603    
   9  Prefactor     58.499        48.960        .10494E-04   -1.4177    
  10  Prefactor     8.8178        16.215        .54013E-05   -1.5114    
  11  norm          .10000E-03    1.6478        .39834E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3793        .18479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    62.961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0038        1.0438        .58494E-05   -1.5425    
  16  norm          13.678        9.2345        .43318E-05   -1.4968    
  17  Prefactor     .10000E-03    17.847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .67800        .12956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.6671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.3192        1.9039        .10945E-04   -1.5167    
  22  Prefactor     .10000E-03    13.530        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.575        5.2467        .40592E-05   -1.4918    
  24  Prefactor     22.448        10.312        .16907E-04   -1.4760    
  25  norm          .10000E-03    43.719        .89965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     40.179        30.741        .12645E-04   -1.4439    
  27  Normalizat    1.2848        .20808        .46620E-04   -.84020    
  28  Prefactor     .69098        .22976        .13936E-04   -1.0388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24896e-10
Minuit parameter uncertainties:
  1  82.4045
  2  0.380373
  3  27.5966
  4  2.91633
  5  0.000205458
  6  15.4962
  7  6.33445e-06
  8  2.86508
  9  48.9936
  10  16.2228
  11  1.96597e-05
  12  0.00016467
  13  5.26025e-07
  14  5.50124e-05
  15  1.04383
  16  9.23542
  17  4.43225e-05
  18  6.40623e-07
  19  8.63433e-05
  20  7.04011e-06
  21  1.90392
  22  3.53039e-05
  23  5.24681
  24  10.313
  25  0.000168294
  26  30.753
  27  0.208219
  28  0.230074
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  6.910e-01  2.301e-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.285e+00  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.33
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 6.70e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 2.24e-05 +/- 1.16e-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) = 6506.8435151
delta logL = 0.257363697297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6506.83350818
delta logL = 0.267370612609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9052       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9378       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67344       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=   6506.834     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9046        1.0409        .75314E-03    .25314E-04
   2  alpha         1.9371        .41358        .33957       -.32802E-04
   3  Normalizat    1.3092        .17288        .52311E-01    .23614E-05
   4  Prefactor     .67361        .19560        .79595E-01    .28897E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.90464
  alpha      = 1.93708
  Normalizat = 1.30924
  Prefactor  = 0.673612
 **********
 **   18 **HESSE 
 **********

 FCN=   6506.834     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9046        1.0874        .30126E-04   -1.5432    
   2  alpha         1.9371        .49433        .13082E-01   -.22711    
   3  Normalizat    1.3092        .20100        .23128E-03   -.83291    
   4  Prefactor     .67361        .22629        .35246E-03   -1.0457    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14791e-12
Minuit parameter uncertainties:
  1  1.08743
  2  0.497786
  3  0.20112
  4  0.226601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/31202': 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) = 6506.83350641
delta logL = 0.267372380255

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.905e+00  1.087e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  1.937e+00  4.978e-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:  6.736e-01  2.266e-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.309e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.87
Ra Dec: 176.740 39.977
Photon Index (Free Index): 1.94 +/- 0.50
Photon Flux (Free Index): 4.71e-08 +/- 3.49e-08
Energy Flux (Free Index): 2.78e-05 +/- 1.90e-05

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/31202/cmap_HighResolution_302572801_302832001_4FGL_J1146.9+3958_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.70e-08', energy_flux2='2.78e-05', photon_flux_error='3.49e-08', dlogl='2.67e-01', energy_flux='2.24e-05', photon_flux2='4.71e-08', job_status='DONE', time_completed='2021-09-04 09:41:45.609410', photon_index_error2='0.50', photon_index2='1.94', ts='9.33', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='1.28', time_epoch_completed='1630773705.61', return_code='0', job_id='31202', GAL2='0.67', EG2='1.31', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='3.49e-08', ts2='9.87', photon_index='2.32' WHERE bin_id='244' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:41:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 31202: <4FGL_J1146.9+3958_daily_bin244> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin244> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 09:26:19 2021
Job was executed on host(s) <bullet0265>, 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:46 2021
Results reported at Sat Sep  4 09:41:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin244 176.74 39.9775 302572801 302832001 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 :                                   906.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

