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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin23
RA = 176.74, Dec = 39.9775
tmin = 245289601, tmax = 245548801
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='28451', job_status='RUN', time_executed='2021-09-04 09:17:05.970629', time_epoch_executed='1630772225.97' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28451

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28451/ft1_4FGL_J1146.9+3958_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28451/ft2_4FGL_J1146.9+3958_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28451/ft1_4FGL_J1146.9+3958_daily_bin23.fits outfile=/scratch/kocevski/28451/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin23.fits ra=176.74 dec=39.9775 rad=12.0 tmin=245289601.0 tmax=245548801.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.45
user 1.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28451/ft1_filtered_4FGL_J1146.9+3958_daily_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/28451/ft2_4FGL_J1146.9+3958_daily_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/28451/ltcube_245289601_245548801_4FGL_J1146.9+3958_daily_bin23.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/28451/ft2_4FGL_J1146.9+3958_daily_bin23.fits
.....................!
real 13.11
user 12.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28451/ft1_filtered_4FGL_J1146.9+3958_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/28451/ft2_4FGL_J1146.9+3958_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/28451/ltcube_245289601_245548801_4FGL_J1146.9+3958_daily_bin23.fits outfile=/scratch/kocevski/28451/expmap_245289601_245548801_4FGL_J1146.9+3958_daily_bin23.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/28451/ltcube_245289601_245548801_4FGL_J1146.9+3958_daily_bin23.fits
.....................!
real 189.89
user 184.81
sys 4.70

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/28451/ft1_filtered_4FGL_J1146.9+3958_daily_bin23.fits scfile=/scratch/kocevski/28451/ft2_4FGL_J1146.9+3958_daily_bin23.fits outfile=/scratch/kocevski/28451/cmap_245289601_245548801_4FGL_J1146.9+3958_daily_bin23.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/28451/ft1_filtered_4FGL_J1146.9+3958_daily_bin23.fits scfile=/scratch/kocevski/28451/ft2_4FGL_J1146.9+3958_daily_bin23.fits outfile=/scratch/kocevski/28451/cmap_HighResolution_245289601_245548801_4FGL_J1146.9+3958_daily_bin23.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=176.74 yref=39.9775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2058       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1800       1.0000         .10000E-03   10000.    
     5 'Prefactor '    211.49       1.0000         .10000E-03   10000.    
     6 'norm      '    20.385       1.0000         .10000E-03   10000.    
     7 'norm      '    61.780       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11404E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.442       1.0000         .10000E-03   10000.    
    11 'norm      '    .13082E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32858E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.873       1.0000         .10000E-03   10000.    
    15 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.088       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7235       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29795E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.239       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4819       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4775       1.0000         .10000E-03   10000.    
    23 'norm      '    63.429       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.2024       1.0000         .10000E-03   10000.    
    25 'norm      '    4.4254       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.373       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .63649       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3261       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=   6031.515     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3630 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    116.75       -.66036E-05** at limit **
   2  norm          1.2057        .32961       -.75394E-08    .79493E-04
   3  Prefactor     .10000E-03    7.9201        .14328E-06** at limit **
   4  Prefactor     9.1812        13.042        .26919E-06    .42561E-04
   5  Prefactor     211.44        132.89       -.36688E-05   -.18292E-03
   6  norm          20.384        15.478        .99000E-07   -.73839E-05
   7  norm          61.749        65.059       -.37370E-05   -.21673E-03
   8  Prefactor     .10000E-03    1.5348        .23567E-06** at limit **
   9  Prefactor     .10002E-03    63.484        .94913E-05** at limit **
  10  Prefactor     53.438        23.340        .19930E-07   -.42943E-04
  11  norm          .10271E-03    1.1404       -.62677E-06** at limit **
  12  Prefactor     .10000E-03    9.5623        .12596E-06** at limit **
  13  Prefactor     .10043E-03    2.8335        .37458E-06** at limit **
  14  Prefactor     30.871        36.931       -.42237E-06    .12207E-04
  15  norm          .10000E-03    .48498        .32693E-06** at limit **
  16  norm          12.089        9.7898       -.26693E-06   -.13316E-03
  17  Prefactor     1.7222        122.90        .27859E-05   -.18831E-05
  18  Prefactor     .10169E-03    2.0697       -.62185E-06** at limit **
  19  Prefactor     .10000E-03    27.489        .27062E-06** at limit **
  20  Prefactor     16.259        29.635        .32495E-06    .19040E-03
  21  norm          2.4818        1.3509        .28208E-08   -.83975E-04
  22  Prefactor     5.4684        39.888       -.12832E-05   -.30097E-04
  23  norm          63.428        8.7913        .79931E-07    .30340E-03
  24  Prefactor     3.2022        4.6969        .36632E-05   -.32099E-03
  25  norm          4.4256        8.4698       -.75833E-06   -.21589E-03
  26  Prefactor     18.372        22.985       -.14076E-06   -.41414E-04
  27  Normalizat    .63675        .17897       -.17550E-05    .75538E-04
  28  Prefactor     1.3258        .20705        .67705E-06   -.11646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  norm       = 1.20571
  Prefactor  = 0.0001
  Prefactor  = 9.18122
  Prefactor  = 211.442
  norm       = 20.3836
  norm       = 61.7489
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 53.4379
  norm       = 0.000102713
  Prefactor  = 0.0001
  Prefactor  = 0.000100425
  Prefactor  = 30.871
  norm       = 0.0001
  norm       = 12.0886
  Prefactor  = 1.72219
  Prefactor  = 0.000101693
  Prefactor  = 0.0001
  Prefactor  = 16.2586
  norm       = 2.48181
  Prefactor  = 5.46839
  norm       = 63.4283
  Prefactor  = 3.20217
  norm       = 4.42565
  Prefactor  = 18.3724
  Normalizat = 0.636749
  Prefactor  = 1.32581
 **********
 **   18 **HESSE 
 **********

 FCN=   6031.515     FROM HESSE     STATUS=OK           553 CALLS     4183 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    118.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2057        .33173        .21997E-04   -1.5488    
   3  Prefactor     .10000E-03    7.9481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.1812        13.103        .13228E-03   -1.5102    
   5  Prefactor     211.44        134.53        .13900E-03   -1.2789    
   6  norm          20.384        15.464        .88712E-04   -1.4805    
   7  norm          61.749        65.978        .51050E-04   -1.4135    
   8  Prefactor     .10000E-03    1.5950        .18726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    66.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     53.438        23.312        .54866E-04   -1.4245    
  11  norm          .10271E-03    2.6036        .27736E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.5838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10043E-03    6.9633        .41497E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.871        35.632        .72110E-04   -1.4596    
  15  norm          .10000E-03    .67506        .99162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.089        9.7949        .11522E-03   -1.5012    
  17  Prefactor     1.7222        116.87        .31992E-03   -1.5445    
  18  Prefactor     .10169E-03    4.2777        .35781E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.259        29.718        .99391E-04   -1.4901    
  21  norm          2.4818        1.3460        .63733E-04   -1.5393    
  22  Prefactor     5.4684        38.414        .17168E-03   -1.5240    
  23  norm          63.428        8.7965        .50386E-04   -1.4113    
  24  Prefactor     3.2022        4.8311        .10195E-02   -1.5350    
  25  norm          4.4256        8.4853        .19143E-03   -1.5287    
  26  Prefactor     18.372        22.960        .93439E-04   -1.4850    
  27  Normalizat    .63675        .20743        .29665E-03   -1.0645    
  28  Prefactor     1.3258        .24276        .26475E-03   -.82543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44988e-09
Minuit parameter uncertainties:
  1  0.0025821
  2  0.331735
  3  1.18482e-05
  4  13.1069
  5  134.725
  6  15.4672
  7  66.056
  8  7.08307e-07
  9  0.00252105
  10  23.316
  11  0.00531544
  12  5.90433e-06
  13  0.0034417
  14  35.6567
  15  1.06215e-06
  16  9.79621
  17  28.4318
  18  0.00538265
  19  4.49696e-05
  20  29.7448
  21  1.34604
  22  29.0135
  23  8.7967
  24  4.83173
  25  8.48764
  26  22.9705
  27  0.207687
  28  0.242965
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.000e-04  1.062e-06  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.326e+00  2.430e-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:  6.367e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/28451/likelihoodResults_245289601_245548801_4FGL_J1146.9+3958_daily_bin23.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6031.52201106
delta logL = -0.00700017026884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6031.23763274
delta logL = 0.277378154356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35876E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .59379       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3566       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=   6031.238     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      297 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35876E-01    2.3801        .46204E-02    .35779E-02
   2  alpha         5.0000        2.9293        .46267    ** at limit **
   3  Normalizat    .59381        .71721E-01    .69251E-01   -.37475E-05
   4  Prefactor     1.3565        .75359E-01    .59295E-01   -.20484E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0358759
  alpha      = 5
  Normalizat = 0.59381
  Prefactor  = 1.35654
 **********
 **   18 **HESSE 
 **********

 FCN=   6031.238     FROM HESSE     STATUS=OK            37 CALLS      334 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35876E-01    .64896E-01    .21170E-03   -1.5670    
   2  alpha         5.0000        4.2552        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .59381        .20167        .30652E-03   -1.0825    
   4  Prefactor     1.3565        .24486        .26219E-03   -.81641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11847e-11
Minuit parameter uncertainties:
  1  0.064896
  2  5.85303e-06
  3  0.201918
  4  0.245069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28451': 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) = 6031.23763273
delta logL = 0.277378160954

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  3.588e-02  6.490e-02  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  5.000e+00  5.853e-06  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.357e+00  2.451e-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:  5.938e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/28451/cmap_HighResolution_245289601_245548801_4FGL_J1146.9+3958_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-05', job_status='DONE', photon_flux_upper_limit='6.96e-08', time_completed='2021-09-04 09:31:56.190954', job_id='28451', GAL2='1.36', fit_tolerance='1e-08', EG2='0.59', EG='0.64', time_epoch_completed='1630773116.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='2.77e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='23' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:31:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 28451: <4FGL_J1146.9+3958_daily_bin23> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin23> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 09:16:33 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:16:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 09:16:34 2021
Terminated at Sat Sep  4 09:31:57 2021
Results reported at Sat Sep  4 09:31:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin23 176.74 39.9775 245289601 245548801 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 :                                   890.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             323.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

