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


Performing analysis on: 4FGL_J1146.9+3958_daily_bin79
RA = 176.74, Dec = 39.9775
tmin = 259804801, tmax = 260064001
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='29615', job_status='RUN', time_executed='2021-09-04 09:22:33.620110', time_epoch_executed='1630772553.62' WHERE source_name='4FGL J1146.9+3958' and cadence='daily' and bin_id='79'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/29615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/29615/ft1_4FGL_J1146.9+3958_daily_bin79.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/29615/ft2_4FGL_J1146.9+3958_daily_bin79.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/29615/ft1_4FGL_J1146.9+3958_daily_bin79.fits outfile=/scratch/kocevski/29615/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin79.fits ra=176.74 dec=39.9775 rad=12.0 tmin=259804801.0 tmax=260064001.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 2.74
user 2.50
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/29615/ft2_4FGL_J1146.9+3958_daily_bin79.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/29615/ft1_filteredMKT_4FGL_J1146.9+3958_daily_bin79.fits evtable="EVENTS" outfile="/scratch/kocevski/29615/ft1_filtered_4FGL_J1146.9+3958_daily_bin79.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/29615/ft1_filtered_4FGL_J1146.9+3958_daily_bin79.fits" evtable="EVENTS" scfile=/scratch/kocevski/29615/ft2_4FGL_J1146.9+3958_daily_bin79.fits sctable="SC_DATA" outfile=/scratch/kocevski/29615/ltcube_259804801_260064001_4FGL_J1146.9+3958_daily_bin79.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/29615/ft2_4FGL_J1146.9+3958_daily_bin79.fits
.....................!
real 12.31
user 11.91
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/29615/ft1_filtered_4FGL_J1146.9+3958_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/29615/ft2_4FGL_J1146.9+3958_daily_bin79.fits sctable="SC_DATA" expcube=/scratch/kocevski/29615/ltcube_259804801_260064001_4FGL_J1146.9+3958_daily_bin79.fits outfile=/scratch/kocevski/29615/expmap_259804801_260064001_4FGL_J1146.9+3958_daily_bin79.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/29615/ltcube_259804801_260064001_4FGL_J1146.9+3958_daily_bin79.fits
.....................!
real 192.51
user 187.37
sys 4.82

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/29615/ft1_filtered_4FGL_J1146.9+3958_daily_bin79.fits scfile=/scratch/kocevski/29615/ft2_4FGL_J1146.9+3958_daily_bin79.fits outfile=/scratch/kocevski/29615/cmap_259804801_260064001_4FGL_J1146.9+3958_daily_bin79.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/29615/ft1_filtered_4FGL_J1146.9+3958_daily_bin79.fits scfile=/scratch/kocevski/29615/ft2_4FGL_J1146.9+3958_daily_bin79.fits outfile=/scratch/kocevski/29615/cmap_HighResolution_259804801_260064001_4FGL_J1146.9+3958_daily_bin79.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.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .73984       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9185       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0645       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13119E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.808       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.872       1.0000         .10000E-03   10000.    
    11 'norm      '    .10409E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5443       1.0000         .10000E-03   10000.    
    16 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9157       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .50851E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13172E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.9876       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.2567       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.9299       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    31.182       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0688       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90191       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=   6516.689     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     3531 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    120.59        .21579E-05** at limit **
   2  norm          .73983        .24208       -.34080E-07    .80868E-03
   3  Prefactor     2.9162        11.251        .42825E-05   -.57179E-04
   4  Prefactor     .10000E-03    3.9627        .53420E-07** at limit **
   5  Prefactor     .10000E-03    28.709        .96794E-06** at limit **
   6  norm          4.0606        13.295        .21202E-05    .66846E-04
   7  norm          .10000E-03    15.755       -.17727E-05** at limit **
   8  Prefactor     .10000E-03    1.4440       -.12098E-05** at limit **
   9  Prefactor     13.735        27.438        .37208E-05    .29688E-03
  10  Prefactor     14.866        17.102        .32097E-08    .91633E-04
  11  norm          .10000E-03    1.5585       -.71530E-06** at limit **
  12  Prefactor     .10000E-03    7.6986        .10890E-06** at limit **
  13  Prefactor     .10000E-03    4.5070        .42414E-07** at limit **
  14  Prefactor     .10000E-03    41.807       -.75069E-06** at limit **
  15  norm          1.5424        .98092        .11010E-06    .13774E-02
  16  norm          .10000E-03    9.4690       -.86957E-08** at limit **
  17  Prefactor     5.8949        22.476       -.32766E-07    .44925E-04
  18  Prefactor     .10009E-03    1.4641        .26823E-06** at limit **
  19  Prefactor     .10000E-03    110.00       -.15093E-05** at limit **
  20  Prefactor     .10000E-03    39.779       -.81870E-07** at limit **
  21  norm          3.9876        1.3300        .28934E-08    .40072E-04
  22  Prefactor     .10000E-03    14.683        .16042E-05** at limit **
  23  norm          2.2569        2.0377       -.48213E-08   -.32452E-05
  24  Prefactor     7.9306        6.2340       -.83436E-08   -.92747E-05
  25  norm          .10000E-03    3.1131       -.28577E-07** at limit **
  26  Prefactor     31.190        22.070        .16929E-06   -.31134E-04
  27  Normalizat    1.0690        .16191       -.41450E-06    .51738E-03
  28  Prefactor     .90162        .18516        .19345E-06    .35641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.739828
  Prefactor  = 2.91618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.06063
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 13.7353
  Prefactor  = 14.8656
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54238
  norm       = 0.0001
  Prefactor  = 5.89494
  Prefactor  = 0.000100086
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.98763
  Prefactor  = 0.000100001
  norm       = 2.25688
  Prefactor  = 7.93056
  norm       = 0.0001
  Prefactor  = 31.1901
  Normalizat = 1.06897
  Prefactor  = 0.901617
 **********
 **   18 **HESSE 
 **********

 FCN=   6516.689     FROM HESSE     STATUS=OK           519 CALLS     4050 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    120.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .73983        .24280        .21692E-04   -1.5536    
   3  Prefactor     2.9162        11.069        .11890E-02   -1.5366    
   4  Prefactor     .10000E-03    3.9658        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0606        13.091        .99995E-03   -1.5305    
   7  norm          .10000E-03    15.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4515        .16560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.735        27.129        .10779E-03   -1.4967    
  10  Prefactor     14.866        17.059        .10386E-03   -1.4937    
  11  norm          .10000E-03    2.8367        .18753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.7249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6137        .33365E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5424        .97155        .60243E-04   -1.5460    
  16  norm          .10000E-03    9.5898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8949        22.514        .16510E-03   -1.5222    
  18  Prefactor     .10009E-03    58.164        .18320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    111.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    40.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.9876        1.3285        .51760E-04   -1.5309    
  22  Prefactor     .10000E-03    14.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.2569        2.0449        .10656E-03   -1.5408    
  24  Prefactor     7.9306        6.2334        .14239E-03   -1.5145    
  25  norm          .10000E-03    3.1148        .13902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     31.190        22.047        .71753E-04   -1.4590    
  27  Normalizat    1.0690        .18779        .21994E-03   -.90754    
  28  Prefactor     .90162        .21753        .28568E-03   -.96085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47223e-09
Minuit parameter uncertainties:
  1  0.000883881
  2  0.242796
  3  11.0766
  4  5.09353e-08
  5  0.000184446
  6  13.0999
  7  0.000250011
  8  0.000137679
  9  27.1529
  10  17.0641
  11  7.40823e-06
  12  8.43958e-06
  13  1.65143e-05
  14  0.000232061
  15  0.971558
  16  1.72329e-05
  17  22.5461
  18  0.0044788
  19  0.000884038
  20  1.94979e-06
  21  1.32852
  22  0.000212351
  23  2.04499
  24  6.23395
  25  3.6941e-06
  26  22.0532
  27  0.187904
  28  0.21774
Done.

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

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.542e+00  9.716e-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:  9.016e-01  2.177e-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.069e+00  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.53
Ra Dec: 176.740 39.977
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 5.15e-08 +/- 3.24e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.08e-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) = 6516.60341623
delta logL = 0.0852347926648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6516.59489863
delta logL = 0.0937523900575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4426       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6160       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91649       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=   6516.595     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4419        14.502        .89771E-02    .44813E-03
   2  alpha         2.6162        3.6711        .41208        .29576E-04
   3  Normalizat    1.0506        .55890E-01    .40518E-01    .66680E-05
   4  Prefactor     .91644        .64246E-01    .45215E-01    .14848E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.44193
  alpha      = 2.6162
  Normalizat = 1.05063
  Prefactor  = 0.916443
 **********
 **   18 **HESSE 
 **********

 FCN=   6516.595     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4419        .98770        .54364E-04   -1.5468    
   2  alpha         2.6162        .71019        .14894E-01    .46498E-01
   3  Normalizat    1.0506        .18576        .22158E-03   -.91353    
   4  Prefactor     .91644        .21976        .28339E-03   -.95569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84929e-12
Minuit parameter uncertainties:
  1  0.987714
  2  0.720129
  3  0.185876
  4  0.219976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/29615': 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) = 6516.59489834
delta logL = 0.0937526747011

Extracting fit parameters...

4FGL J1146.9+3958
   Spectrum: LogParabola
333         norm:  1.442e+00  9.877e-01  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.616e+00  7.201e-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:  9.164e-01  2.200e-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.051e+00  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.70
Ra Dec: 176.740 39.977
Photon Index (Free Index): 2.62 +/- 0.72
Photon Flux (Free Index): 6.40e-08 +/- 4.51e-08
Energy Flux (Free Index): 1.63e-05 +/- 9.89e-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/29615/cmap_HighResolution_259804801_260064001_4FGL_J1146.9+3958_daily_bin79.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.15e-08', energy_flux2='1.63e-05', photon_flux_error='3.24e-08', dlogl='9.38e-02', energy_flux='1.72e-05', photon_flux2='6.40e-08', job_status='DONE', time_completed='2021-09-04 09:35:54.808447', photon_index_error2='0.72', photon_index2='2.62', ts='5.53', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='9.89e-06', EG='1.07', time_epoch_completed='1630773354.81', return_code='0', job_id='29615', GAL2='0.92', EG2='1.05', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.51e-08', ts2='5.70', photon_index='2.32' WHERE bin_id='79' AND source_name='4FGL J1146.9+3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 09:35:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 29615: <4FGL_J1146.9+3958_daily_bin79> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1146.9+3958_daily_bin79 176.74 39.9775 259804801 260064001 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 :                                   800.44 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             278.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

