/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 9 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 = 7446
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1459.0+7140_daily_bin921
RA = 224.753, Dec = 71.6733
tmin = 478051201, tmax = 478310401
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='927814', job_status='RUN', time_executed='2021-09-10 17:16:41.068544', time_epoch_executed='1631319401.07' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='921'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927814

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927814/ft1_4FGL_J1459.0+7140_daily_bin921.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927814/ft2_4FGL_J1459.0+7140_daily_bin921.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927814/ft1_4FGL_J1459.0+7140_daily_bin921.fits outfile=/scratch/kocevski/927814/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin921.fits ra=224.753 dec=71.6733 rad=12.0 tmin=478051201.0 tmax=478310401.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 3.57
user 3.30
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/927814/ft2_4FGL_J1459.0+7140_daily_bin921.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/927814/ft2_4FGL_J1459.0+7140_daily_bin921.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/927814/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin921.fits evtable="EVENTS" outfile="/scratch/kocevski/927814/ft1_filtered_4FGL_J1459.0+7140_daily_bin921.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927814/ft1_filtered_4FGL_J1459.0+7140_daily_bin921.fits" evtable="EVENTS" scfile=/scratch/kocevski/927814/ft2_4FGL_J1459.0+7140_daily_bin921.fits sctable="SC_DATA" outfile=/scratch/kocevski/927814/ltcube_478051201_478310401_4FGL_J1459.0+7140_daily_bin921.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/927814/ft2_4FGL_J1459.0+7140_daily_bin921.fits
.....................!
real 11.60
user 11.26
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927814/ft1_filtered_4FGL_J1459.0+7140_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/927814/ft2_4FGL_J1459.0+7140_daily_bin921.fits sctable="SC_DATA" expcube=/scratch/kocevski/927814/ltcube_478051201_478310401_4FGL_J1459.0+7140_daily_bin921.fits outfile=/scratch/kocevski/927814/expmap_478051201_478310401_4FGL_J1459.0+7140_daily_bin921.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/927814/ltcube_478051201_478310401_4FGL_J1459.0+7140_daily_bin921.fits
.....................!
real 190.50
user 186.10
sys 4.05

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 220 point sources and 0 extended sources

Setting source of interest to:
4FGL J1459.0+7140 @ 224.753 71.6733

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/927814/ft1_filtered_4FGL_J1459.0+7140_daily_bin921.fits scfile=/scratch/kocevski/927814/ft2_4FGL_J1459.0+7140_daily_bin921.fits outfile=/scratch/kocevski/927814/cmap_478051201_478310401_4FGL_J1459.0+7140_daily_bin921.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=224.753 yref=71.6733 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927814/ft1_filtered_4FGL_J1459.0+7140_daily_bin921.fits scfile=/scratch/kocevski/927814/ft2_4FGL_J1459.0+7140_daily_bin921.fits outfile=/scratch/kocevski/927814/cmap_HighResolution_478051201_478310401_4FGL_J1459.0+7140_daily_bin921.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=224.753 yref=71.6733 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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/927814/ft1_filtered_4FGL_J1459.0+7140_daily_bin921.fits evtable="EVENTS" scfile=/scratch/kocevski/927814/ft2_4FGL_J1459.0+7140_daily_bin921.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/927814/Model_4FGL_J1459.0+7140_daily_bin921.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/927814/ft1_filtered_4FGL_J1459.0+7140_daily_bin921.fits.....................!
real 72.50
user 70.64
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/927814/ft1_filtered_4FGL_J1459.0+7140_daily_bin921.fits', '/scratch/kocevski/927814/ft2_4FGL_J1459.0+7140_daily_bin921.fits', expMap='/scratch/kocevski/927814/expmap_478051201_478310401_4FGL_J1459.0+7140_daily_bin921.fits', expCube='/scratch/kocevski/927814/ltcube_478051201_478310401_4FGL_J1459.0+7140_daily_bin921.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/927814/Model_4FGL_J1459.0+7140_daily_bin921.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1459.0+7140'

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  8.846e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.499e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/927814/ft1_filtered_4FGL_J1459.0+7140_daily_bin921.fits
Spacecraft file(s): /scratch/kocevski/927814/ft2_4FGL_J1459.0+7140_daily_bin921.fits
Exposure map: /scratch/kocevski/927814/expmap_478051201_478310401_4FGL_J1459.0+7140_daily_bin921.fits
Exposure cube: /scratch/kocevski/927814/ltcube_478051201_478310401_4FGL_J1459.0+7140_daily_bin921.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/927814/Model_4FGL_J1459.0+7140_daily_bin921.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) = 7632.06982655

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .72379E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .93331E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.743       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3037       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10215E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.903       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.735       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10855E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11838E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.343       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.342       1.0000         .10000E-03   10000.    
    18 'norm      '    7.9791       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11571E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    24.970       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12124E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .57911       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0004       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+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.

 FCN=   7632.011     FROM MIGRAD    STATUS=CONVERGED   1263 CALLS     3637 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.981        .18142E-02** at limit **
   2  Prefactor     .10029E-03    23.601        .13603    ** at limit **
   3  Prefactor     .10000E-03    12.751        .18142E-02** at limit **
   4  Prefactor     .10007E-03    4.2048        .35605E-01** at limit **
   5  Prefactor     15.726        13.542        .10094E-03    .61043E-04
   6  Prefactor     .10000E-03    7.0306        .18142E-02** at limit **
   7  Prefactor     .10001E-03    14.291        .33345E-02** at limit **
   8  Prefactor     3.3009        12.218        .11137E-02    .47867E-04
   9  Prefactor     .10043E-03    108.22        .58294E-02** at limit **
  10  Prefactor     .10000E-03    127.12        .18142E-02** at limit **
  11  Prefactor     18.910        27.555        .92120E-04   -.61706E-05
  12  Prefactor     .10000E-03    9.9456        .18142E-02** at limit **
  13  Prefactor     57.692        28.683        .52798E-04    .75364E-05
  14  Prefactor     .10000E-03    16.873        .18142E-02** at limit **
  15  Prefactor     .10000E-03    18.650        .18142E-02** at limit **
  16  Prefactor     12.358        14.660        .11402E-03   -.11157E-03
  17  Prefactor     14.309        32.813        .10576E-03    .11072E-04
  18  norm          7.9793        3.4543        .10366E-03   -.26630E-03
  19  Prefactor     .10000E-03    47.518        .18142E-02** at limit **
  20  norm          25.002        17.056        .80165E-04   -.22123E-04
  21  Prefactor     .10000E-03    48.784        .18142E-02** at limit **
  22  Prefactor     .10000E-03    75.076        .18142E-02** at limit **
  23  norm          .10000E-03    .33608        .82525E-03** at limit **
  24  Prefactor     .57714        2.0010        .21684E-03    .72623E-04
  25  Prefactor     .10000E-03    5.6524        .18142E-02** at limit **
  26  Prefactor     .10000E-03    8.3661        .18142E-02** at limit **
  27  Normalizat    1.0004        .17838        .23551E-03    .20062E-03
  28  Prefactor     .93079        .16232        .22770E-03    .39700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100286
  Prefactor  = 0.0001
  Prefactor  = 0.000100067
  Prefactor  = 15.7255
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.30089
  Prefactor  = 0.000100426
  Prefactor  = 0.0001
  Prefactor  = 18.9104
  Prefactor  = 0.0001
  Prefactor  = 57.6918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3581
  Prefactor  = 14.3088
  norm       = 7.97928
  Prefactor  = 0.0001
  norm       = 25.0022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.577141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00038
  Prefactor  = 0.930795
 **********
 **   18 **HESSE 
 **********

 FCN=   7632.011     FROM HESSE     STATUS=OK           515 CALLS     4152 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.983        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10029E-03    23.284        .13768       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.752        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10007E-03    3.0391        .43803E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.726        13.542        .40377E-05   -1.4915    
   6  Prefactor     .10000E-03    7.0348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    14.447        .66690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3009        12.212        .44547E-04   -1.5345    
   9  Prefactor     .10043E-03    111.79        .23318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    127.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.910        27.553        .36848E-05   -1.4838    
  12  Prefactor     .10000E-03    9.9481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     57.692        28.687        .21119E-05   -1.4187    
  14  Prefactor     .10000E-03    16.874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.650        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.358        14.658        .45608E-05   -1.5005    
  17  Prefactor     14.309        32.814        .42306E-05   -1.4951    
  18  norm          7.9793        3.4542        .41462E-05   -1.5143    
  19  Prefactor     .10000E-03    47.519        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          25.002        17.054        .32066E-05   -1.4708    
  21  Prefactor     .10000E-03    48.785        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    75.114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .33633        .16505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .57714        2.0004        .43369E-04   -1.5556    
  25  Prefactor     .10000E-03    5.6526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.3665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0004        .17844        .94203E-05   -.93018    
  28  Prefactor     .93079        .16245        .45539E-04   -.95073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5357e-09
Minuit parameter uncertainties:
  1  0.000170886
  2  0.00516461
  3  8.90341e-05
  4  0.00090147
  5  13.5448
  6  2.12581e-05
  7  0.000557997
  8  12.2217
  9  0.0138297
  10  5.234e-06
  11  27.5716
  12  5.53547e-05
  13  28.6934
  14  5.77408e-05
  15  1.32239e-05
  16  14.6621
  17  32.8557
  18  3.45429
  19  0.000172606
  20  17.057
  21  2.28652e-05
  22  1.65461e-05
  23  6.2323e-06
  24  2.00067
  25  5.43058e-07
  26  1.606e-06
  27  0.17855
  28  0.162539
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  5.769e+01  2.869e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.499e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.308e-01  1.625e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.000e+00  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.45
Ra Dec: 224.753 71.673
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 6.06e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 8.76e-06

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) = 7631.96616272
delta logL = 0.0446596023503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7631.9648935
delta logL = 0.0459288255988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.131       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6683       1.0000          .0000       10.000    
     3 'Normalizat'    .99239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93650       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7631.965     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      231 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.200        419.49        .14303E-02    .25793E-04
   2  Index         2.6675        3.2504        .15276        .13286E-03
   3  Normalizat    .99233        .67790E-01    .46071E-01   -.40142E-04
   4  Prefactor     .93656        .57344E-01    .45469E-01    .49046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.1997
  Index      = 2.66753
  Normalizat = 0.992329
  Prefactor  = 0.936559
 **********
 **   18 **HESSE 
 **********

 FCN=   7631.965     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.200        41.337        .57211E-04   -1.4304    
   2  Index         2.6675        .62211        .56865E-02   -.48532    
   3  Normalizat    .99233        .17350        .23633E-03   -.93288    
   4  Prefactor     .93656        .16113        .22709E-03   -.94875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96829e-11
Minuit parameter uncertainties:
  1  41.3609
  2  0.624182
  3  0.173602
  4  0.161213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927814': 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) = 7631.96489173
delta logL = 0.0459305887161

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  4.920e+01  4.136e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.668e+00  6.242e-01  0.000e+00  1.000e+01 (-1.000e+00)
376        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.366e-01  1.612e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  9.923e-01  1.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.54
Ra Dec: 224.753 71.673
Photon Index (Free Index): 2.67 +/- 0.62
Photon Flux (Free Index): 6.54e-08 +/- 3.46e-08
Energy Flux (Free Index): 1.62e-05 +/- 9.36e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/927814/cmap_HighResolution_478051201_478310401_4FGL_J1459.0+7140_daily_bin921.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.06e-08', energy_flux2='1.62e-05', photon_flux_error='3.01e-08', dlogl='4.59e-02', energy_flux='1.76e-05', photon_flux2='6.54e-08', job_status='DONE', time_completed='2021-09-10 17:32:00.535509', photon_index_error2='0.62', photon_index2='2.67', ts='7.45', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='9.36e-06', EG='1.00', time_epoch_completed='1631320320.54', return_code='0', job_id='927814', GAL2='0.94', EG2='0.99', return_code2='0', energy_flux_error='8.76e-06', photon_flux_error2='3.46e-08', ts2='7.54', photon_index='2.50' WHERE bin_id='921' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:32:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 927814: <4FGL_J1459.0+7140_daily_bin921> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin921> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 17:16:14 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:16:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 17:16:15 2021
Terminated at Fri Sep 10 17:32:01 2021
Results reported at Fri Sep 10 17:32:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin921 224.753 71.6733 478051201 478310401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1459.0+7140 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   916.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

