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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin60
RA = 176.74, Dec = 39.9775
tmin = 254880001, tmax = 255139201
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='29587', job_status='RUN', time_executed='2021-09-04 09:21:53.916570', time_epoch_executed='1630772513.92' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29587

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29587/ft1_4FGL_J1146.9+3958_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29587/ft2_4FGL_J1146.9+3958_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29587/ft1_4FGL_J1146.9+3958_daily_bin60.fits outfile=/scratch/kocevski/29587/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin60.fits ra=176.74 dec=39.9775 rad=12.0 tmin=254880001.0 tmax=255139201.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.51
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29587/ft2_4FGL_J1146.9+3958_daily_bin60.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/29587/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin60.fits evtable="EVENTS" outfile="/scratch/kocevski/29587/ft1_filtered_4FGL_J1146.9+3958_daily_bin60.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/29587/ft1_filtered_4FGL_J1146.9+3958_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/29587/ft2_4FGL_J1146.9+3958_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/29587/ltcube_254880001_255139201_4FGL_J1146.9+3958_daily_bin60.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/29587/ft2_4FGL_J1146.9+3958_daily_bin60.fits
.....................!
real 13.03
user 12.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29587/ft1_filtered_4FGL_J1146.9+3958_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/29587/ft2_4FGL_J1146.9+3958_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/29587/ltcube_254880001_255139201_4FGL_J1146.9+3958_daily_bin60.fits outfile=/scratch/kocevski/29587/expmap_254880001_255139201_4FGL_J1146.9+3958_daily_bin60.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/29587/ltcube_254880001_255139201_4FGL_J1146.9+3958_daily_bin60.fits
.....................!
real 190.13
user 185.59
sys 3.92

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/29587/ft1_filtered_4FGL_J1146.9+3958_daily_bin60.fits scfile=/scratch/kocevski/29587/ft2_4FGL_J1146.9+3958_daily_bin60.fits outfile=/scratch/kocevski/29587/cmap_254880001_255139201_4FGL_J1146.9+3958_daily_bin60.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1046       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1813       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13759E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0294       1.0000         .10000E-03   10000.    
    16 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.371       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    67.624       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .93048       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18167E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.8909       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    17.627       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .94724       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1134       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=   6224.912     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3484 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.99       -.19237E-06** at limit **
   2  norm          1.3666        .32592       -.28299E-07    .72806E-04
   3  Prefactor     7.1019        10.514        .31493E-05    .24822E-04
   4  Prefactor     .10000E-03    3.4585       -.29391E-07** at limit **
   5  Prefactor     .10000E-03    32.044       -.32025E-06** at limit **
   6  norm          .10000E-03    5.1959       -.12316E-06** at limit **
   7  norm          .10000E-03    26.003        .39137E-06** at limit **
   8  Prefactor     4.1847        2.4850       -.19288E-06    .15408E-03
   9  Prefactor     .10000E-03    32.952       -.29788E-06** at limit **
  10  Prefactor     .10000E-03    8.0259       -.25597E-07** at limit **
  11  norm          .10000E-03    .62222        .15823E-07** at limit **
  12  Prefactor     .10000E-03    4.3965        .34902E-07** at limit **
  13  Prefactor     .10000E-03    4.4149       -.50956E-06** at limit **
  14  Prefactor     .10000E-03    28.178        .23584E-08** at limit **
  15  norm          1.0300        1.0135       -.19505E-07    .50797E-04
  16  norm          .10000E-03    4.6282       -.22405E-06** at limit **
  17  Prefactor     20.396        28.335        .58566E-07    .81172E-04
  18  Prefactor     .10000E-03    2.3567        .26970E-07** at limit **
  19  Prefactor     67.591        55.823       -.24884E-06   -.13313E-03
  20  Prefactor     .10000E-03    6.0771        .17528E-07** at limit **
  21  norm          .93010        .84163        .33251E-07    .32618E-04
  22  Prefactor     .10000E-03    48.337        .15947E-05** at limit **
  23  norm          3.8907        3.1283        .88554E-07    .82288E-05
  24  Prefactor     .10000E-03    10.372        .11087E-07** at limit **
  25  norm          17.624        11.714        .61032E-06    .24519E-05
  26  Prefactor     .10000E-03    10.002        .17433E-06** at limit **
  27  Normalizat    .94768        .16652       -.57188E-06    .57412E-04
  28  Prefactor     1.1130        .19687       -.21122E-07    .17683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.36657
  Prefactor  = 7.10193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.18468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.03003
  norm       = 0.0001
  Prefactor  = 20.3956
  Prefactor  = 0.0001
  Prefactor  = 67.5909
  Prefactor  = 0.0001
  norm       = 0.930096
  Prefactor  = 0.000100001
  norm       = 3.89073
  Prefactor  = 0.0001
  norm       = 17.6241
  Prefactor  = 0.0001
  Normalizat = 0.947684
  Prefactor  = 1.11301
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.912     FROM HESSE     STATUS=OK           515 CALLS     3999 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3666        .32646        .21152E-04   -1.5474    
   3  Prefactor     7.1019        10.556        .75249E-03   -1.5175    
   4  Prefactor     .10000E-03    3.4593        .14330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.2227        .17568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    26.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1847        2.4462        .90381E-04   -1.5299    
   9  Prefactor     .10000E-03    32.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.0701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .62608        .60733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.4061        .16156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.724        .30192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0300        .97306        .70138E-03   -1.5505    
  16  norm          .10000E-03    4.6439        .16572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.396        27.995        .88741E-04   -1.4804    
  18  Prefactor     .10000E-03    2.4624        .23629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     67.591        55.470        .48808E-04   -1.4062    
  20  Prefactor     .10000E-03    6.0851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .93010        .85309        .66489E-04   -1.5515    
  22  Prefactor     .10000E-03    48.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.8907        3.1243        .12130E-03   -1.5313    
  24  Prefactor     .10000E-03    10.736        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          17.624        11.713        .47699E-03   -1.4868    
  26  Prefactor     .10000E-03    10.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .94768        .19774        .23995E-03   -.94804    
  28  Prefactor     1.1130        .23433        .27303E-03   -.89052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.45592e-10
Minuit parameter uncertainties:
  1  0.000208828
  2  0.326457
  3  10.5589
  4  2.28358e-06
  5  0.000184491
  6  1.47903e-05
  7  0.000185597
  8  2.44627
  9  0.000161024
  10  1.21475e-05
  11  1.17283e-06
  12  1.67643e-06
  13  0.000413064
  14  4.05489e-05
  15  0.973071
  16  2.336e-06
  17  28.0134
  18  2.2269e-06
  19  55.5122
  20  4.79929e-06
  21  0.853105
  22  0.00047139
  23  3.12444
  24  1.23024e-05
  25  11.7141
  26  6.01111e-05
  27  0.197892
  28  0.234551
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.113e+00  2.346e-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:  9.477e-01  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.97
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.44e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.09e-05

TS (Fixed Index): 1.97
Ra Dec: 176.740 39.977
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/29587/likelihoodResults_254880001_255139201_4FGL_J1146.9+3958_daily_bin60.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) = 6224.69220718
delta logL = 0.219321961604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6224.68296755
delta logL = 0.228561594951

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90085       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8250       1.0000          .0000       5.0000    
     3 'Normalizat'    .92986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1259       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=   6224.683     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90041        13.584        .12613E-01    .75382E-03
   2  alpha         2.8251        3.7820        .41600        .32088E-04
   3  Normalizat    .92989        .45876E-01    .45282E-01    .12174E-04
   4  Prefactor     1.1259        .57070E-01    .61412E-01    .83212E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.90041
  alpha      = 2.82508
  Normalizat = 0.929886
  Prefactor  = 1.12595
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.683     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90041        .92419        .57631E-03   -1.5518    
   2  alpha         2.8251        .82790        .16903E-01    .13040    
   3  Normalizat    .92989        .19288        .24187E-03   -.95418    
   4  Prefactor     1.1259        .23422        .27161E-03   -.88642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11786e-09
Minuit parameter uncertainties:
  1  0.924209
  2  0.844126
  3  0.193028
  4  0.234434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29587': 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) = 6224.68296714
delta logL = 0.228562000211

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.126e+00  2.344e-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:  9.299e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.45
Ra Dec: 176.740 39.977
Photon Index (Free Index): 2.83 +/- 0.84
Photon Flux (Free Index): 4.99e-08 +/- 4.11e-08
Energy Flux (Free Index): 1.11e-05 +/- 9.00e-06

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.43e-05', comment='SUCCESS', photon_flux='3.44e-08', energy_flux2='1.11e-05', photon_flux_error='3.25e-08', dlogl='2.29e-01', energy_flux='1.15e-05', photon_flux2='4.99e-08', job_status='DONE', time_completed='2021-09-04 09:36:28.301005', photon_index_error2='0.84', photon_index2='2.83', ts='1.97', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='9.00e-06', EG='0.95', time_epoch_completed='1630773388.3', return_code='0', job_id='29587', GAL2='1.13', EG2='0.93', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='4.11e-08', ts2='2.45', photon_index='2.32' WHERE bin_id='60' 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@bullet0187>
Subject: Job 29587: <4FGL_J1146.9+3958_daily_bin60> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin60 176.74 39.9775 254880001 255139201 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 :                                   870.20 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             326.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

