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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin40
RA = 176.74, Dec = 39.9775
tmin = 249696001, tmax = 249955201
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='28478', job_status='RUN', time_executed='2021-09-04 09:18:02.406058', time_epoch_executed='1630772282.41' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28478

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28478/ft1_4FGL_J1146.9+3958_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28478/ft2_4FGL_J1146.9+3958_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28478/ft1_4FGL_J1146.9+3958_daily_bin40.fits outfile=/scratch/kocevski/28478/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin40.fits ra=176.74 dec=39.9775 rad=12.0 tmin=249696001.0 tmax=249955201.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.46
user 1.29
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28478/ft2_4FGL_J1146.9+3958_daily_bin40.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/28478/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/28478/ft1_filtered_4FGL_J1146.9+3958_daily_bin40.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28478/ft1_filtered_4FGL_J1146.9+3958_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/28478/ft2_4FGL_J1146.9+3958_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/28478/ltcube_249696001_249955201_4FGL_J1146.9+3958_daily_bin40.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/28478/ft2_4FGL_J1146.9+3958_daily_bin40.fits
.....................!
real 12.73
user 12.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28478/ft1_filtered_4FGL_J1146.9+3958_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/28478/ft2_4FGL_J1146.9+3958_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/28478/ltcube_249696001_249955201_4FGL_J1146.9+3958_daily_bin40.fits outfile=/scratch/kocevski/28478/expmap_249696001_249955201_4FGL_J1146.9+3958_daily_bin40.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/28478/ltcube_249696001_249955201_4FGL_J1146.9+3958_daily_bin40.fits
.....................!
real 189.20
user 185.32
sys 3.53

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/28478/ft1_filtered_4FGL_J1146.9+3958_daily_bin40.fits scfile=/scratch/kocevski/28478/ft2_4FGL_J1146.9+3958_daily_bin40.fits outfile=/scratch/kocevski/28478/cmap_249696001_249955201_4FGL_J1146.9+3958_daily_bin40.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.52
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/28478/ft1_filtered_4FGL_J1146.9+3958_daily_bin40.fits scfile=/scratch/kocevski/28478/ft2_4FGL_J1146.9+3958_daily_bin40.fits outfile=/scratch/kocevski/28478/cmap_HighResolution_249696001_249955201_4FGL_J1146.9+3958_daily_bin40.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    269.44       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5789       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.536       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3137       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.880       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.8078       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3325       1.0000         .10000E-03   10000.    
    15 'norm      '    .10523E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.6934       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17216E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18378E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.624       1.0000         .10000E-03   10000.    
    21 'norm      '    4.4271       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2789       1.0000         .10000E-03   10000.    
    23 'norm      '    7.1318       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.4097       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.3617       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .89389       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .78006       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=   4641.630     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3521 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     269.43        129.18        .77947E-06    .90384E-05
   2  norm          1.5786        .45092        .72836E-08   -.12632E-02
   3  Prefactor     .10000E-03    14.547        .90860E-06** at limit **
   4  Prefactor     12.552        27.681       -.17601E-05   -.21421E-04
   5  Prefactor     .10000E-03    35.401        .49697E-06** at limit **
   6  norm          .10000E-03    6.4780       -.11817E-06** at limit **
   7  norm          .10000E-03    21.892       -.15141E-06** at limit **
   8  Prefactor     1.3156        5.1915        .18093E-05    .20223E-03
   9  Prefactor     28.831        72.579       -.39751E-06    .65391E-04
  10  Prefactor     .10000E-03    11.163       -.28506E-06** at limit **
  11  norm          3.8078        2.9294       -.51631E-06    .72584E-05
  12  Prefactor     .10000E-03    4.3668       -.27404E-07** at limit **
  13  Prefactor     .10000E-03    6.2867       -.10675E-05** at limit **
  14  Prefactor     5.3269        26.295       -.60216E-06   -.10832E-04
  15  norm          .10000E-03    .55639        .10712E-06** at limit **
  16  norm          7.6927        7.5353       -.13140E-07   -.16506E-04
  17  Prefactor     .10003E-03    114.79       -.14189E-06** at limit **
  18  Prefactor     .10000E-03    3.7402        .61203E-06** at limit **
  19  Prefactor     .10000E-03    15.867       -.62252E-06** at limit **
  20  Prefactor     15.643        27.157       -.35137E-06   -.11998E-03
  21  norm          4.4276        1.6013        .96596E-07    .59179E-03
  22  Prefactor     5.3379        44.085       -.87544E-05    .91104E-05
  23  norm          7.1316        3.5889        .52125E-07    .12687E-03
  24  Prefactor     1.4086        6.3449        .68289E-05   -.87032E-04
  25  norm          .10000E-03    8.2903        .98836E-07** at limit **
  26  Prefactor     6.3609        12.532        .34522E-06   -.14488E-04
  27  Normalizat    .89392        .17646       -.96171E-06   -.28323E-04
  28  Prefactor     .78006        .19702        .27092E-06    .13335E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 269.435
  norm       = 1.57864
  Prefactor  = 0.0001
  Prefactor  = 12.5516
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.31565
  Prefactor  = 28.8309
  Prefactor  = 0.0001
  norm       = 3.80779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.3269
  norm       = 0.0001
  norm       = 7.69273
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6433
  norm       = 4.42762
  Prefactor  = 5.33789
  norm       = 7.13165
  Prefactor  = 1.40855
  norm       = 0.0001
  Prefactor  = 6.36089
  Normalizat = 0.89392
  Prefactor  = 0.78006
 **********
 **   18 **HESSE 
 **********

 FCN=   4641.630     FROM HESSE     STATUS=OK           521 CALLS     4042 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     269.43        129.33        .12352E-03   -1.2410    
   2  norm          1.5786        .46163        .21052E-04   -1.5457    
   3  Prefactor     .10000E-03    14.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.552        28.264        .11314E-03   -1.4999    
   5  Prefactor     .10000E-03    35.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.5024        .16935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    21.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3156        5.2452        .17170E-03   -1.5479    
   9  Prefactor     28.831        72.766        .74551E-04   -1.4634    
  10  Prefactor     .10000E-03    11.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8078        2.9265        .91839E-04   -1.5318    
  12  Prefactor     .10000E-03    4.3722        .13904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.5153        .33447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3269        25.782        .17404E-03   -1.5246    
  15  norm          .10000E-03    2.1361        .97259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.6927        7.5278        .14458E-03   -1.5153    
  17  Prefactor     .10003E-03    116.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.6214        .22817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.643        24.604        .10133E-03   -1.4917    
  21  norm          4.4276        1.6021        .49833E-04   -1.5287    
  22  Prefactor     5.3379        43.693        .17494E-03   -1.5246    
  23  norm          7.1316        3.5895        .88924E-04   -1.5174    
  24  Prefactor     1.4086        6.3897        .16479E-02   -1.5471    
  25  norm          .10000E-03    8.4169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.3609        12.517        .79568E-03   -1.5203    
  27  Normalizat    .89392        .20639        .22139E-03   -.96674    
  28  Prefactor     .78006        .23053        .27967E-03   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61938e-10
Minuit parameter uncertainties:
  1  129.471
  2  0.461626
  3  9.79598e-05
  4  28.2943
  5  1.28102e-05
  6  8.20294e-07
  7  5.25235e-06
  8  5.24705
  9  72.991
  10  1.17114e-05
  11  2.92661
  12  9.80121e-08
  13  2.10019e-05
  14  23.4545
  15  2.37817e-07
  16  7.52869
  17  0.00397657
  18  7.71209e-05
  19  1.11197e-05
  20  24.6203
  21  1.60208
  22  30.5738
  23  3.58962
  24  6.00092
  25  2.71787e-06
  26  12.5223
  27  0.206574
  28  0.230812
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.000e-04  2.378e-07  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:  7.801e-01  2.308e-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:  8.939e-01  2.066e-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: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28478/likelihoodResults_249696001_249955201_4FGL_J1146.9+3958_daily_bin40.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) = 4641.63225546
delta logL = -0.00233476572248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4641.62992136
delta logL = -6.74553120916e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2845       1.0000          .0000       5.0000    
     3 'Normalizat'    .89423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77985       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4641.630     FROM MIGRAD    STATUS=FAILED       104 CALLS      262 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    413.35        .98898E-03** at limit **
   2  alpha         2.1094        3.8629        .16539        .71971E-07
   3  Normalizat    .89392        .70749E-01    .22139E-03    .74773E-03
   4  Prefactor     .78006        .84767E-01    .27967E-03    .58347E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4641.630     FROM SIMPLEX   STATUS=UNCHANGED    189 CALLS      451 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    413.35        .23418E-03** at limit **
   2  alpha         2.1094        3.8629        .30295E-05    .71971E-07
   3  Normalizat    .89392        .70749E-01    .10516E-06    .74773E-03
   4  Prefactor     .78006        .84767E-01    .87115E-07    .58347E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4641.630     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      479 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6782        .19780E-03** at limit **
   2  alpha         2.1102        2.9673        .66154E-02    .46984E-06
   3  Normalizat    .89392        .19101        .44278E-04    .74962E-03
   4  Prefactor     .78006        .22779        .55934E-04    .58475E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.11017
  Normalizat = 0.893925
  Prefactor  = 0.780058
 **********
 **   18 **HESSE 
 **********

 FCN=   4641.630     FROM HESSE     STATUS=OK            23 CALLS      502 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6790        .39559E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1102        2.9597        .13231E-02   -.15657    
   3  Normalizat    .89392        .19103        .88557E-05   -.96674    
   4  Prefactor     .78006        .22781        .11187E-04   -1.0047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00809e-09
Minuit parameter uncertainties:
  1  7.12876e-05
  2  69.9616
  3  0.191176
  4  0.228084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28478': 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) = 4641.62991629
delta logL = 4.39489031123e-06

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.000e-04  7.129e-05  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.110e+00  6.996e+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:  7.801e-01  2.281e-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:  8.939e-01  1.912e-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/28478/cmap_HighResolution_249696001_249955201_4FGL_J1146.9+3958_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-05', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-04 09:30:26.926162', job_id='28478', GAL2='0.78', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630773026.93', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='4.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='40' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:30:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 28478: <4FGL_J1146.9+3958_daily_bin40> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin40> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 09:16:36 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 09:16:37 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:37 2021
Terminated at Sat Sep  4 09:30:27 2021
Results reported at Sat Sep  4 09:30:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin40 176.74 39.9775 249696001 249955201 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 :                                   744.16 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             308.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            831 sec.

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

