/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 9 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 = 7462
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1146.9+3958_daily_bin471
RA = 176.74, Dec = 39.9775
tmin = 361411201, tmax = 361670401
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='32583', job_status='RUN', time_executed='2021-09-04 09:31:36.904287', time_epoch_executed='1630773096.9' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/32583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/32583/ft1_4FGL_J1146.9+3958_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/32583/ft2_4FGL_J1146.9+3958_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/32583/ft1_4FGL_J1146.9+3958_daily_bin471.fits outfile=/scratch/kocevski/32583/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin471.fits ra=176.74 dec=39.9775 rad=12.0 tmin=361411201.0 tmax=361670401.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.53
user 3.33
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/32583/ft2_4FGL_J1146.9+3958_daily_bin471.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/32583/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin471.fits evtable="EVENTS" outfile="/scratch/kocevski/32583/ft1_filtered_4FGL_J1146.9+3958_daily_bin471.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/32583/ft1_filtered_4FGL_J1146.9+3958_daily_bin471.fits" evtable="EVENTS" scfile=/scratch/kocevski/32583/ft2_4FGL_J1146.9+3958_daily_bin471.fits sctable="SC_DATA" outfile=/scratch/kocevski/32583/ltcube_361411201_361670401_4FGL_J1146.9+3958_daily_bin471.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/32583/ft2_4FGL_J1146.9+3958_daily_bin471.fits
.....................!
real 12.05
user 11.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/32583/ft1_filtered_4FGL_J1146.9+3958_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/32583/ft2_4FGL_J1146.9+3958_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/32583/ltcube_361411201_361670401_4FGL_J1146.9+3958_daily_bin471.fits outfile=/scratch/kocevski/32583/expmap_361411201_361670401_4FGL_J1146.9+3958_daily_bin471.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/32583/ltcube_361411201_361670401_4FGL_J1146.9+3958_daily_bin471.fits
.....................!
real 190.02
user 184.89
sys 4.55

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/32583/ft1_filtered_4FGL_J1146.9+3958_daily_bin471.fits scfile=/scratch/kocevski/32583/ft2_4FGL_J1146.9+3958_daily_bin471.fits outfile=/scratch/kocevski/32583/cmap_361411201_361670401_4FGL_J1146.9+3958_daily_bin471.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/32583/ft1_filtered_4FGL_J1146.9+3958_daily_bin471.fits scfile=/scratch/kocevski/32583/ft2_4FGL_J1146.9+3958_daily_bin471.fits outfile=/scratch/kocevski/32583/cmap_HighResolution_361411201_361670401_4FGL_J1146.9+3958_daily_bin471.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9230       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9376       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17307E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    57.521       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10393E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5413       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.213       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4302       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2470       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.6624       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.369       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.925       1.0000         .10000E-03   10000.    
    25 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    56.846       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0528       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87932       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=   6565.432     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3514 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.435       -.22215E-06** at limit **
   2  norm          1.9230        .37399       -.33644E-07   -.17393E-02
   3  Prefactor     2.9380        11.628        .31238E-05   -.16480E-03
   4  Prefactor     .10000E-03    5.9249        .98456E-07** at limit **
   5  Prefactor     .10000E-03    43.296        .22693E-06** at limit **
   6  norm          .10000E-03    7.4656        .10852E-06** at limit **
   7  norm          .10000E-03    89.372       -.26291E-06** at limit **
   8  Prefactor     .10008E-03    1.8111        .13482E-05** at limit **
   9  Prefactor     57.553        39.013       -.29901E-05   -.46897E-03
  10  Prefactor     .10000E-03    14.670        .35879E-06** at limit **
  11  norm          .10000E-03    1.2695        .13805E-05** at limit **
  12  Prefactor     9.5422        12.228        .63795E-06   -.49214E-04
  13  Prefactor     .10000E-03    3.4549        .87146E-07** at limit **
  14  Prefactor     10.222        29.649       -.17045E-06   -.72355E-04
  15  norm          3.4305        1.2319       -.29162E-07   -.18388E-02
  16  norm          .10000E-03    4.0529       -.24727E-07** at limit **
  17  Prefactor     7.2469        12.359       -.25651E-07   -.67892E-04
  18  Prefactor     .10000E-03    1.3486        .46237E-07** at limit **
  19  Prefactor     .10000E-03    12.977       -.29710E-06** at limit **
  20  Prefactor     .10000E-03    28.257       -.21540E-06** at limit **
  21  norm          2.6623        1.3209        .15021E-07   -.11744E-03
  22  Prefactor     .10000E-03    11.144       -.35506E-07** at limit **
  23  norm          12.369        4.6476       -.18284E-07   -.68179E-03
  24  Prefactor     12.925        8.8179        .92733E-07   -.37112E-04
  25  norm          .10000E-03    5.9895       -.14435E-06** at limit **
  26  Prefactor     56.839        30.923        .16121E-06   -.10122E-03
  27  Normalizat    1.0528        .16350       -.85325E-06   -.77170E-03
  28  Prefactor     .87945        .18853        .14607E-06   -.53472E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 1.92304
  Prefactor  = 2.93799
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010008
  Prefactor  = 57.5525
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 9.54224
  Prefactor  = 0.0001
  Prefactor  = 10.2223
  norm       = 3.43052
  norm       = 0.0001
  Prefactor  = 7.24694
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.6623
  Prefactor  = 0.0001
  norm       = 12.3688
  Prefactor  = 12.925
  norm       = 0.0001
  Prefactor  = 56.8386
  Normalizat = 1.05278
  Prefactor  = 0.879454
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.432     FROM HESSE     STATUS=OK           513 CALLS     4027 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9230        .37583        .20614E-04   -1.5431    
   3  Prefactor     2.9380        12.809        .11849E-02   -1.5365    
   4  Prefactor     .10000E-03    5.9330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    43.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.4947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    90.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10008E-03    10.897        .16473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     57.553        40.637        .52895E-04   -1.4189    
  10  Prefactor     .10000E-03    14.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.7343        .16260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.5422        12.193        .64869E-03   -1.5090    
  13  Prefactor     .10000E-03    3.5372        .29386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.222        29.671        .12538E-03   -1.5068    
  15  norm          3.4305        1.2344        .49540E-04   -1.5338    
  16  norm          .10000E-03    4.0602        .15930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.2469        12.350        .14900E-03   -1.5169    
  18  Prefactor     .10000E-03    2.5243        .18231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.6623        1.3187        .63439E-04   -1.5382    
  22  Prefactor     .10000E-03    11.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.369        4.6531        .10397E-03   -1.5004    
  24  Prefactor     12.925        8.8296        .11142E-03   -1.4989    
  25  norm          .10000E-03    6.0016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     56.839        30.998        .53206E-04   -1.4199    
  27  Normalizat    1.0528        .18887        .23536E-03   -.91283    
  28  Prefactor     .87945        .21752        .30264E-03   -.96863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33657e-09
Minuit parameter uncertainties:
  1  0.000306744
  2  0.375831
  3  12.2731
  4  1.01777e-05
  5  0.000478408
  6  2.55685e-06
  7  0.000287018
  8  0.00186966
  9  40.6564
  10  0.00028749
  11  3.52581e-06
  12  12.1964
  13  3.19685e-06
  14  29.7139
  15  1.23437
  16  2.68661e-06
  17  12.3544
  18  1.45392e-05
  19  0.000285747
  20  3.27865e-05
  21  1.3187
  22  5.06403e-06
  23  4.65324
  24  8.83047
  25  2.19103e-05
  26  31.0073
  27  0.188986
  28  0.217738
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  3.431e+00  1.234e+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:  8.795e-01  2.177e-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.053e+00  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.34
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 4.12e-08
Energy Flux (Fixed Index): 3.83e-05 +/- 1.38e-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) = 6565.2713675
delta logL = 0.160714280874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6565.26251016
delta logL = 0.169571620613

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5363       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1008       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86273       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=   6565.263     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5358        1.8833        .53738E-02    .10039E-03
   2  alpha         2.1011        .50203        .26450       -.45628E-05
   3  Normalizat    1.0741        .16144        .39169E-01    .54838E-05
   4  Prefactor     .86276        .19037        .69001E-01    .16891E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.53581
  alpha      = 2.10112
  Normalizat = 1.07412
  Prefactor  = 0.862761
 **********
 **   18 **HESSE 
 **********

 FCN=   6565.263     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .62E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5358        1.2661        .52401E-04   -1.5332    
   2  alpha         2.1011        .37289        .10614E-01   -.16024    
   3  Normalizat    1.0741        .18584        .23343E-03   -.90587    
   4  Prefactor     .86276        .21757        .30527E-03   -.97455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16884e-14
Minuit parameter uncertainties:
  1  1.26612
  2  0.374322
  3  0.185953
  4  0.217789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/32583': 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) = 6565.26250943
delta logL = 0.169572341196

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  3.536e+00  1.266e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.101e+00  3.743e-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:  8.628e-01  2.178e-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.074e+00  1.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.56
Ra Dec: 176.740 39.977
Photon Index (Free Index): 2.10 +/- 0.37
Photon Flux (Free Index): 9.82e-08 +/- 4.52e-08
Energy Flux (Free Index): 4.39e-05 +/- 2.00e-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/32583/cmap_HighResolution_361411201_361670401_4FGL_J1146.9+3958_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='4.39e-05', photon_flux_error='4.12e-08', dlogl='1.70e-01', energy_flux='3.83e-05', photon_flux2='9.82e-08', job_status='DONE', time_completed='2021-09-04 09:44:57.485677', photon_index_error2='0.37', photon_index2='2.10', ts='21.34', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='1.05', time_epoch_completed='1630773897.49', return_code='0', job_id='32583', GAL2='0.86', EG2='1.07', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='4.52e-08', ts2='21.56', photon_index='2.32' WHERE bin_id='471' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:44:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 32583: <4FGL_J1146.9+3958_daily_bin471> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin471> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 09:31:18 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:31:19 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:19 2021
Terminated at Sat Sep  4 09:44:58 2021
Results reported at Sat Sep  4 09:44:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin471 176.74 39.9775 361411201 361670401 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 :                                   798.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

