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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin38
RA = 176.74, Dec = 39.9775
tmin = 249177601, tmax = 249436801
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='28475', job_status='RUN', time_executed='2021-09-04 09:17:10.850655', time_epoch_executed='1630772230.85' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28475

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28475/ft1_4FGL_J1146.9+3958_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28475/ft2_4FGL_J1146.9+3958_daily_bin38.fits


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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28475/ft1_filtered_4FGL_J1146.9+3958_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/28475/ft2_4FGL_J1146.9+3958_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/28475/ltcube_249177601_249436801_4FGL_J1146.9+3958_daily_bin38.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/28475/ft2_4FGL_J1146.9+3958_daily_bin38.fits
.....................!
real 12.60
user 12.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28475/ft1_filtered_4FGL_J1146.9+3958_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/28475/ft2_4FGL_J1146.9+3958_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/28475/ltcube_249177601_249436801_4FGL_J1146.9+3958_daily_bin38.fits outfile=/scratch/kocevski/28475/expmap_249177601_249436801_4FGL_J1146.9+3958_daily_bin38.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/28475/ltcube_249177601_249436801_4FGL_J1146.9+3958_daily_bin38.fits
.....................!
real 190.09
user 185.46
sys 4.28

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/28475/ft1_filtered_4FGL_J1146.9+3958_daily_bin38.fits scfile=/scratch/kocevski/28475/ft2_4FGL_J1146.9+3958_daily_bin38.fits outfile=/scratch/kocevski/28475/cmap_249177601_249436801_4FGL_J1146.9+3958_daily_bin38.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/28475/ft1_filtered_4FGL_J1146.9+3958_daily_bin38.fits scfile=/scratch/kocevski/28475/ft2_4FGL_J1146.9+3958_daily_bin38.fits outfile=/scratch/kocevski/28475/cmap_HighResolution_249177601_249436801_4FGL_J1146.9+3958_daily_bin38.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/28475/ft1_filtered_4FGL_J1146.9+3958_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/28475/ft2_4FGL_J1146.9+3958_daily_bin38.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28475/Model_4FGL_J1146.9+3958_daily_bin38.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/28475/ft1_filtered_4FGL_J1146.9+3958_daily_bin38.fits.....................!
real 44.97
user 43.60
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11403E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9135       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10802E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10637E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .25887E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .12261E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9749       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13625E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.203       1.0000         .10000E-03   10000.    
    11 'norm      '    .53528       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21284E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.094       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4192       1.0000         .10000E-03   10000.    
    16 'norm      '    .11464E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.404       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    141.54       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5692       1.0000         .10000E-03   10000.    
    21 'norm      '    3.5971       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12605E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1869       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10797E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .21188E-01   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0063       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87733       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=   4981.647     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3545 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.886        .36789E-06** at limit **
   2  norm          1.9136        .40149        .11909E-08   -.23599E-03
   3  Prefactor     .10000E-03    27.229       -.43961E-06** at limit **
   4  Prefactor     .10000E-03    10.120       -.40084E-07** at limit **
   5  Prefactor     .10000E-03    25.691        .22184E-06** at limit **
   6  norm          .10009E-03    8.5035       -.19058E-06** at limit **
   7  norm          .10000E-03    17.065       -.26599E-08** at limit **
   8  Prefactor     2.9755        2.2270       -.29741E-07   -.14221E-03
   9  Prefactor     .10000E-03    21.095       -.79196E-07** at limit **
  10  Prefactor     10.174        15.326       -.17554E-05    .71027E-04
  11  norm          .53598        1.2789        .71978E-06    .10910E-02
  12  Prefactor     .10032E-03    12.238       -.14221E-05** at limit **
  13  Prefactor     .10000E-03    2.7366        .25211E-06** at limit **
  14  Prefactor     22.083        22.227       -.55771E-07   -.22332E-04
  15  norm          1.4193        .94468        .19303E-08   -.87194E-04
  16  norm          .10000E-03    6.7842        .29597E-06** at limit **
  17  Prefactor     10.360        26.307        .33210E-06    .67262E-04
  18  Prefactor     .10000E-03    2.3236        .11596E-06** at limit **
  19  Prefactor     141.58        74.271        .45138E-06    .67600E-04
  20  Prefactor     4.5680        36.419        .15772E-05    .18504E-04
  21  norm          3.5975        1.5896        .73492E-08    .15045E-04
  22  Prefactor     .10000E-03    26.744        .41022E-06** at limit **
  23  norm          2.1869        2.1758       -.95044E-08   -.13680E-04
  24  Prefactor     .10000E-03    4.3078       -.12888E-07** at limit **
  25  norm          .10000E-03    6.9844        .35225E-08** at limit **
  26  Prefactor     .10057E-03    32.064       -.84433E-06** at limit **
  27  Normalizat    1.0061        .18838       -.16129E-05   -.91294E-05
  28  Prefactor     .87759        .21058        .95341E-06   -.50451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 1.91365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100087
  norm       = 0.0001
  Prefactor  = 2.97546
  Prefactor  = 0.0001
  Prefactor  = 10.1745
  norm       = 0.535983
  Prefactor  = 0.000100317
  Prefactor  = 0.0001
  Prefactor  = 22.0825
  norm       = 1.41928
  norm       = 0.0001
  Prefactor  = 10.3597
  Prefactor  = 0.0001
  Prefactor  = 141.579
  Prefactor  = 4.56797
  norm       = 3.5975
  Prefactor  = 0.0001
  norm       = 2.18694
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100566
  Normalizat = 1.00615
  Prefactor  = 0.877586
 **********
 **   18 **HESSE 
 **********

 FCN=   4981.647     FROM HESSE     STATUS=OK           533 CALLS     4078 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9136        .40108        .19727E-04   -1.5431    
   3  Prefactor     .10000E-03    27.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10009E-03    120.53        .39452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    17.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9755        2.2098        .86967E-04   -1.5363    
   9  Prefactor     .10000E-03    21.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.174        14.558        .12544E-03   -1.5070    
  11  norm          .53598        1.2112        .13301E-02   -1.5562    
  12  Prefactor     .10032E-03    58.650        .42632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7673        .11391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.083        22.214        .85214E-04   -1.4768    
  15  norm          1.4193        .94150        .52102E-04   -1.5470    
  16  norm          .10000E-03    6.7917        .17936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.360        26.288        .12422E-03   -1.5064    
  18  Prefactor     .10000E-03    2.3270        .10445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     141.58        74.023        .16931E-03   -1.3323    
  20  Prefactor     4.5680        35.965        .18832E-03   -1.5280    
  21  norm          3.5975        1.5876        .56769E-04   -1.5329    
  22  Prefactor     .10000E-03    26.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1869        2.1822        .10114E-03   -1.5412    
  24  Prefactor     .10000E-03    4.3386        .14304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.9954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10057E-03    35.055        .11383       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0061        .21530        .23012E-03   -.92825    
  28  Prefactor     .87759        .24344        .29155E-03   -.96929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57986e-09
Minuit parameter uncertainties:
  1  0.000346539
  2  0.401079
  3  7.09046e-05
  4  1.23417e-06
  5  0.000118373
  6  0.00648989
  7  1.3044e-06
  8  2.20982
  9  2.37976e-05
  10  14.5626
  11  1.21125
  12  0.00862991
  13  1.20606e-05
  14  22.2225
  15  0.941509
  16  1.07403e-05
  17  26.3172
  18  1.42079e-06
  19  74.0717
  20  25.6557
  21  1.58765
  22  2.54479e-05
  23  2.18229
  24  3.90868e-06
  25  4.37603e-06
  26  0.00891337
  27  0.215489
  28  0.243744
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.419e+00  9.415e-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.776e-01  2.437e-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.006e+00  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.56
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.74e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 1.05e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4980.26372052
delta logL = 1.38348436523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4980.23081548
delta logL = 1.41638940002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1845       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4879       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0291       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86137       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=   4980.231     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1845        .77878        .10486E-01   -.13630E-03
   2  alpha         1.4879        .35646        .25295       -.33353E-04
   3  Normalizat    1.0291        .17382        .42253E-01    .59975E-05
   4  Prefactor     .86136        .20788        .66448E-01    .12832E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1845
  alpha      = 1.4879
  Normalizat = 1.02912
  Prefactor  = 0.861364
 **********
 **   18 **HESSE 
 **********

 FCN=   4980.231     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1845        .91101        .47543E-04   -1.5490    
   2  alpha         1.4879        .44436        .10419E-01   -.41680    
   3  Normalizat    1.0291        .20233        .22792E-03   -.92061    
   4  Prefactor     .86136        .24171        .29394E-03   -.97505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83094e-10
Minuit parameter uncertainties:
  1  0.911021
  2  0.447206
  3  0.20248
  4  0.242006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28475': 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) = 4980.23081548
delta logL = 1.41638940224

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.185e+00  9.110e-01  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  1.488e+00  4.472e-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.614e-01  2.420e-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.029e+00  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.46
Ra Dec: 176.740 39.977
Photon Index (Free Index): 1.49 +/- 0.45
Photon Flux (Free Index): 2.46e-08 +/- 1.95e-08
Energy Flux (Free Index): 4.13e-05 +/- 4.07e-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/28475/cmap_HighResolution_249177601_249436801_4FGL_J1146.9+3958_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.74e-08', energy_flux2='4.13e-05', photon_flux_error='3.14e-08', dlogl='1.42e+00', energy_flux='1.58e-05', photon_flux2='2.46e-08', job_status='DONE', time_completed='2021-09-04 09:28:27.027555', photon_index_error2='0.45', photon_index2='1.49', ts='7.56', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='4.07e-05', EG='1.01', time_epoch_completed='1630772907.03', return_code='0', job_id='28475', GAL2='0.86', EG2='1.03', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='1.95e-08', ts2='10.46', photon_index='2.32' WHERE bin_id='38' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:28:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 28475: <4FGL_J1146.9+3958_daily_bin38> in cluster <slac> Done

Job <4FGL_J1146.9+3958_daily_bin38> 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) <bullet0208>, 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:28:27 2021
Results reported at Sat Sep  4 09:28:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin38 176.74 39.9775 249177601 249436801 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 :                                   675.33 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             293.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            711 sec.

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

