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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin56
RA = 176.74, Dec = 39.9775
tmin = 253843201, tmax = 254102401
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='29581', job_status='RUN', time_executed='2021-09-04 09:22:33.419945', time_epoch_executed='1630772553.42' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29581

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29581/ft1_4FGL_J1146.9+3958_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29581/ft2_4FGL_J1146.9+3958_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29581/ft1_4FGL_J1146.9+3958_daily_bin56.fits outfile=/scratch/kocevski/29581/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin56.fits ra=176.74 dec=39.9775 rad=12.0 tmin=253843201.0 tmax=254102401.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.52
user 1.28
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29581/ft2_4FGL_J1146.9+3958_daily_bin56.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/29581/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/29581/ft1_filtered_4FGL_J1146.9+3958_daily_bin56.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/29581/ft1_filtered_4FGL_J1146.9+3958_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/29581/ft2_4FGL_J1146.9+3958_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/29581/ltcube_253843201_254102401_4FGL_J1146.9+3958_daily_bin56.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/29581/ft2_4FGL_J1146.9+3958_daily_bin56.fits
.....................!
real 12.79
user 12.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29581/ft1_filtered_4FGL_J1146.9+3958_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/29581/ft2_4FGL_J1146.9+3958_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/29581/ltcube_253843201_254102401_4FGL_J1146.9+3958_daily_bin56.fits outfile=/scratch/kocevski/29581/expmap_253843201_254102401_4FGL_J1146.9+3958_daily_bin56.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/29581/ltcube_253843201_254102401_4FGL_J1146.9+3958_daily_bin56.fits
.....................!
real 191.77
user 186.19
sys 5.09

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/29581/ft1_filtered_4FGL_J1146.9+3958_daily_bin56.fits scfile=/scratch/kocevski/29581/ft2_4FGL_J1146.9+3958_daily_bin56.fits outfile=/scratch/kocevski/29581/cmap_253843201_254102401_4FGL_J1146.9+3958_daily_bin56.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/29581/ft1_filtered_4FGL_J1146.9+3958_daily_bin56.fits scfile=/scratch/kocevski/29581/ft2_4FGL_J1146.9+3958_daily_bin56.fits outfile=/scratch/kocevski/29581/cmap_HighResolution_253843201_254102401_4FGL_J1146.9+3958_daily_bin56.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/29581/ft1_filtered_4FGL_J1146.9+3958_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/29581/ft2_4FGL_J1146.9+3958_daily_bin56.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/29581/Model_4FGL_J1146.9+3958_daily_bin56.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/29581/ft1_filtered_4FGL_J1146.9+3958_daily_bin56.fits.....................!
real 46.00
user 44.60
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8946       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8160       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .21928E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0337       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.907       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.072       1.0000         .10000E-03   10000.    
    15 'norm      '    .66787       1.0000         .10000E-03   10000.    
    16 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.574       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.921       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30646E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    3.6171       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.041       1.0000         .10000E-03   10000.    
    23 'norm      '    5.9105       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11161E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    49.989       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1437       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82874       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=   5129.466     FROM MIGRAD    STATUS=CONVERGED   1251 CALLS     4100 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.745        .18142E-02** at limit **
   2  norm          1.8946        .39585        .19718E-04   -.16721E-04
   3  Prefactor     8.8196        11.418        .13500E-03    .13980E-05
   4  Prefactor     .10000E-03    4.6676        .15109E-02** at limit **
   5  Prefactor     .10000E-03    46.375        .18142E-02** at limit **
   6  norm          .10000E-03    3.5019        .13085E-02** at limit **
   7  norm          .10000E-03    492.92        .40289E-03** at limit **
   8  Prefactor     1.0339        1.6554        .12704E-02    .29513E-02
   9  Prefactor     .10000E-03    10.628        .18142E-02** at limit **
  10  Prefactor     .10000E-03    26.291        .18142E-02** at limit **
  11  norm          .10000E-03    .62544        .55140E-03** at limit **
  12  Prefactor     13.907        15.959        .10740E-03   -.96323E-05
  13  Prefactor     .10000E-03    1.6439        .89495E-03** at limit **
  14  Prefactor     28.096        30.939        .75614E-04    .25560E-05
  15  norm          .66568        .87783        .72699E-03    .21218E-02
  16  norm          .10000E-03    3.7117        .13473E-02** at limit **
  17  Prefactor     13.573        25.135        .10872E-03   -.26143E-05
  18  Prefactor     .10000E-03    1.9019        .95887E-03** at limit **
  19  Prefactor     37.997        58.737        .65086E-04   -.69869E-06
  20  Prefactor     .36113E-01    19.721        .88197E-01    .70237E-04
  21  norm          3.6171        1.5896        .57530E-04   -.25887E-04
  22  Prefactor     16.054        27.234        .10000E-03   -.20463E-05
  23  norm          5.9105        3.3524        .96105E-04   -.20110E-05
  24  Prefactor     .10000E-03    2.5509        .11157E-02** at limit **
  25  norm          .10000E-03    31.652        .36285E-03** at limit **
  26  Prefactor     50.012        34.712        .56719E-04    .14231E-04
  27  Normalizat    1.1438        .22467        .22686E-03   -.86696E-05
  28  Prefactor     .82860        .25829        .31039E-03   -.64390E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.89458
  Prefactor  = 8.81963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.03392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.9074
  Prefactor  = 0.0001
  Prefactor  = 28.0959
  norm       = 0.665684
  norm       = 0.0001
  Prefactor  = 13.5731
  Prefactor  = 0.0001
  Prefactor  = 37.9968
  Prefactor  = 0.036113
  norm       = 3.61712
  Prefactor  = 16.054
  norm       = 5.91053
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 50.0125
  Normalizat = 1.14378
  Prefactor  = 0.828599
 **********
 **   18 **HESSE 
 **********

 FCN=   5129.466     FROM HESSE     STATUS=OK           505 CALLS     4605 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8946        .39584        .78871E-06   -1.5433    
   3  Prefactor     8.8196        11.417        .26999E-04   -1.5114    
   4  Prefactor     .10000E-03    4.6676        .30217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.375        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.5019        .26171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    492.95        .80578E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0339        1.6546        .25407E-03   -1.5505    
   9  Prefactor     .10000E-03    10.629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .62545        .11028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.907        15.957        .42962E-05   -1.4962    
  13  Prefactor     .10000E-03    1.6440        .17899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.096        30.926        .30245E-05   -1.4647    
  15  norm          .66568        .87668        .14540E-03   -1.5545    
  16  norm          .10000E-03    3.7117        .26946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.573        25.127        .43486E-05   -1.4971    
  18  Prefactor     .10000E-03    1.9021        .19177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.997        58.689        .26034E-05   -1.4474    
  20  Prefactor     .36113E-01    18.965        .90717E-01   -1.5670    
  21  norm          3.6171        1.5896        .23012E-05   -1.5328    
  22  Prefactor     16.054        27.227        .40000E-05   -1.4906    
  23  norm          5.9105        3.3524        .38442E-05   -1.5222    
  24  Prefactor     .10000E-03    2.5510        .22315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    31.653        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     50.012        34.700        .22688E-05   -1.4292    
  27  Normalizat    1.1438        .22492        .90744E-05   -.88358    
  28  Prefactor     .82860        .25860        .12416E-04   -.98683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.26907e-11
Minuit parameter uncertainties:
  1  6.75976e-06
  2  0.39584
  3  11.4203
  4  7.77374e-07
  5  1.03645e-05
  6  1.33783e-06
  7  0.000884377
  8  1.65472
  9  3.44645e-06
  10  7.00687e-06
  11  9.34305e-07
  12  15.9618
  13  1.34621e-06
  14  30.9438
  15  0.876701
  16  5.5555e-07
  17  25.1464
  18  3.56508e-06
  19  58.7782
  20  1.6534
  21  1.58961
  22  27.2484
  23  3.35247
  24  1.83444e-06
  25  0.00021256
  26  34.7139
  27  0.225105
  28  0.258982
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  6.657e-01  8.767e-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:  8.286e-01  2.590e-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.144e+00  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.10
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.22e-08 +/- 2.93e-08
Energy Flux (Fixed Index): 7.43e-06 +/- 9.78e-06

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

Saving results to:
/scratch/kocevski/29581/likelihoodResults_253843201_254102401_4FGL_J1146.9+3958_daily_bin56.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): 0
logL (Free Index) = 5129.42768328
delta logL = 0.0383072319983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5129.42716947
delta logL = 0.0388210430556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67764       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0566       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82437       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=   5129.427     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      229 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67839        56.570        .11976E-01    .43561E-03
   2  alpha         2.0575        3.9514        .42001       -.11287E-04
   3  Normalizat    1.1490        .11057        .36282E-01    .49407E-05
   4  Prefactor     .82441        .16968        .70311E-01    .17731E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.678394
  alpha      = 2.05754
  Normalizat = 1.149
  Prefactor  = 0.824412
 **********
 **   18 **HESSE 
 **********

 FCN=   5129.427     FROM HESSE     STATUS=OK            35 CALLS      264 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67839        .84120        .73753E-03   -1.5543    
   2  alpha         2.0575        .90107        .21417E-01   -.17792    
   3  Normalizat    1.1490        .21599        .22642E-03   -.88194    
   4  Prefactor     .82441        .25604        .31111E-03   -.98835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90078e-10
Minuit parameter uncertainties:
  1  0.841213
  2  0.922528
  3  0.216154
  4  0.256411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29581': 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) = 5129.42716867
delta logL = 0.0388218436692

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  6.784e-01  8.412e-01  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.058e+00  9.225e-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.244e-01  2.564e-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.149e+00  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 176.740 39.977
Photon Index (Free Index): 2.06 +/- 0.92
Photon Flux (Free Index): 1.82e-08 +/- 2.69e-08
Energy Flux (Free Index): 8.72e-06 +/- 1.23e-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/29581/cmap_HighResolution_253843201_254102401_4FGL_J1146.9+3958_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', comment='SUCCESS', photon_flux='2.22e-08', energy_flux2='8.72e-06', photon_flux_error='2.93e-08', dlogl='3.88e-02', energy_flux='7.43e-06', photon_flux2='1.82e-08', job_status='DONE', time_completed='2021-09-04 09:36:28.900646', photon_index_error2='0.92', photon_index2='2.06', ts='1.10', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='9.40e-08', energy_flux_error2='1.23e-05', EG='1.14', time_epoch_completed='1630773388.9', return_code='0', job_id='29581', GAL2='0.82', EG2='1.15', return_code2='0', energy_flux_error='9.78e-06', photon_flux_error2='2.69e-08', ts2='1.18', photon_index='2.32' WHERE bin_id='56' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:36:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 29581: <4FGL_J1146.9+3958_daily_bin56> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin56> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 09:20:56 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:20:58 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:20:58 2021
Terminated at Sat Sep  4 09:36:31 2021
Results reported at Sat Sep  4 09:36:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin56 176.74 39.9775 253843201 254102401 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 :                                   835.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             278.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            935 sec.

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

