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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin997
RA = 224.753, Dec = 71.6733
tmin = 497750401, tmax = 498009601
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='929014', job_status='RUN', time_executed='2021-09-10 17:21:21.190301', time_epoch_executed='1631319681.19' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='997'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929014

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929014/ft1_4FGL_J1459.0+7140_daily_bin997.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929014/ft2_4FGL_J1459.0+7140_daily_bin997.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929014/ft1_4FGL_J1459.0+7140_daily_bin997.fits outfile=/scratch/kocevski/929014/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin997.fits ra=224.753 dec=71.6733 rad=12.0 tmin=497750401.0 tmax=498009601.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 4.68
user 4.43
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929014/ft2_4FGL_J1459.0+7140_daily_bin997.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/929014/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin997.fits evtable="EVENTS" outfile="/scratch/kocevski/929014/ft1_filtered_4FGL_J1459.0+7140_daily_bin997.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929014/ft1_filtered_4FGL_J1459.0+7140_daily_bin997.fits" evtable="EVENTS" scfile=/scratch/kocevski/929014/ft2_4FGL_J1459.0+7140_daily_bin997.fits sctable="SC_DATA" outfile=/scratch/kocevski/929014/ltcube_497750401_498009601_4FGL_J1459.0+7140_daily_bin997.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/929014/ft2_4FGL_J1459.0+7140_daily_bin997.fits
.....................!
real 11.75
user 11.40
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929014/ft1_filtered_4FGL_J1459.0+7140_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/929014/ft2_4FGL_J1459.0+7140_daily_bin997.fits sctable="SC_DATA" expcube=/scratch/kocevski/929014/ltcube_497750401_498009601_4FGL_J1459.0+7140_daily_bin997.fits outfile=/scratch/kocevski/929014/expmap_497750401_498009601_4FGL_J1459.0+7140_daily_bin997.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/929014/ltcube_497750401_498009601_4FGL_J1459.0+7140_daily_bin997.fits
.....................!
real 189.94
user 185.44
sys 4.14

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/929014/ft1_filtered_4FGL_J1459.0+7140_daily_bin997.fits scfile=/scratch/kocevski/929014/ft2_4FGL_J1459.0+7140_daily_bin997.fits outfile=/scratch/kocevski/929014/cmap_497750401_498009601_4FGL_J1459.0+7140_daily_bin997.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929014/ft1_filtered_4FGL_J1459.0+7140_daily_bin997.fits scfile=/scratch/kocevski/929014/ft2_4FGL_J1459.0+7140_daily_bin997.fits outfile=/scratch/kocevski/929014/cmap_HighResolution_497750401_498009601_4FGL_J1459.0+7140_daily_bin997.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929014/ft1_filtered_4FGL_J1459.0+7140_daily_bin997.fits', '/scratch/kocevski/929014/ft2_4FGL_J1459.0+7140_daily_bin997.fits', expMap='/scratch/kocevski/929014/expmap_497750401_498009601_4FGL_J1459.0+7140_daily_bin997.fits', expCube='/scratch/kocevski/929014/ltcube_497750401_498009601_4FGL_J1459.0+7140_daily_bin997.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929014/Model_4FGL_J1459.0+7140_daily_bin997.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/929014/ft1_filtered_4FGL_J1459.0+7140_daily_bin997.fits
Spacecraft file(s): /scratch/kocevski/929014/ft2_4FGL_J1459.0+7140_daily_bin997.fits
Exposure map: /scratch/kocevski/929014/expmap_497750401_498009601_4FGL_J1459.0+7140_daily_bin997.fits
Exposure cube: /scratch/kocevski/929014/ltcube_497750401_498009601_4FGL_J1459.0+7140_daily_bin997.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929014/Model_4FGL_J1459.0+7140_daily_bin997.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) = 7432.94136915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.858       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3387       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1159       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.798       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    90.546       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.522       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.407       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.8442       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18045E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7546       1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.671       1.0000         .10000E-03   10000.    
    23 'norm      '    .81208E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7620       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .84670       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99249       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.

 FCN=   7432.833     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3016 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.564       -.11405E-06** at limit **
   2  Prefactor     15.858        22.105        .14102E-06   -.84145E-05
   3  Prefactor     .10000E-03    12.865       -.84795E-07** at limit **
   4  Prefactor     .10000E-03    1.0022       -.31344E-07** at limit **
   5  Prefactor     .10000E-03    3.3427       -.75352E-07** at limit **
   6  Prefactor     4.3395        4.5814        .40882E-07    .87288E-05
   7  Prefactor     1.1160        7.6838        .40550E-05   -.11519E-04
   8  Prefactor     .10000E-03    8.1024        .92239E-07** at limit **
   9  Prefactor     10.797        18.800        .19192E-06    .64817E-06
  10  Prefactor     .10000E-03    221.40        .13534E-06** at limit **
  11  Prefactor     .10000E-03    20.828       -.28477E-07** at limit **
  12  Prefactor     .10000E-03    6.5062       -.94321E-07** at limit **
  13  Prefactor     90.553        32.725        .83808E-07   -.34729E-04
  14  Prefactor     36.529        33.673        .31031E-06   -.13742E-04
  15  Prefactor     16.520        71.147        .14152E-05    .22970E-04
  16  Prefactor     5.0078        6.3933        .25629E-08   -.98875E-06
  17  Prefactor     .10000E-03    6.2686       -.55095E-07** at limit **
  18  norm          6.8398        3.1355       -.27747E-06    .61141E-04
  19  Prefactor     .10000E-03    460.31       -.69617E-05** at limit **
  20  norm          .10000E-03    5.1434        .64096E-07** at limit **
  21  Prefactor     1.7808        6207.6        .41235E-05    .14351E-06
  22  Prefactor     30.655        30.093       -.23965E-06   -.60138E-04
  23  norm          .81364E-01    .37817        .32848E-06   -.96542E-03
  24  Prefactor     1.7622        1.7984        .13777E-06   -.10411E-04
  25  Prefactor     .10000E-03    5.4694       -.65094E-07** at limit **
  26  Prefactor     .10000E-03    9.4290       -.69479E-07** at limit **
  27  Normalizat    .84662        .14379       -.61120E-06   -.16770E-03
  28  Prefactor     .99249        .13578       -.38899E-06   -.17713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.8584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.3395
  Prefactor  = 1.11595
  Prefactor  = 0.0001
  Prefactor  = 10.7973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 90.5526
  Prefactor  = 36.5287
  Prefactor  = 16.5204
  Prefactor  = 5.00777
  Prefactor  = 0.0001
  norm       = 6.83979
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.78083
  Prefactor  = 30.6553
  norm       = 0.0813644
  Prefactor  = 1.76215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.84662
  Prefactor  = 0.992488
 **********
 **   18 **HESSE 
 **********

 FCN=   7432.833     FROM HESSE     STATUS=OK           517 CALLS     3533 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.858        22.102        .10058E-03   -1.4911    
   3  Prefactor     .10000E-03    12.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0071        .84242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.3458        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3395        4.5808        .18420E-03   -1.5291    
   7  Prefactor     1.1160        7.8593        .44572E-03   -1.5497    
   8  Prefactor     .10000E-03    8.1575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.797        18.795        .12193E-03   -1.5051    
  10  Prefactor     .10000E-03    221.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     90.553        32.756        .42229E-04   -1.3802    
  14  Prefactor     36.529        33.667        .66316E-04   -1.4498    
  15  Prefactor     16.520        71.065        .98879E-04   -1.4895    
  16  Prefactor     5.0078        6.3909        .17969E-03   -1.5260    
  17  Prefactor     .10000E-03    6.2691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.8398        3.1224        .99668E-04   -1.5185    
  19  Prefactor     .10000E-03    463.52        .20319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.1455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7808        6201.4        .31645E-03   -1.5441    
  22  Prefactor     30.655        29.753        .72347E-04   -1.4600    
  23  norm          .81364E-01    .63740        .95246E-03   -1.5651    
  24  Prefactor     1.7622        1.7898        .11281E-03   -1.5442    
  25  Prefactor     .10000E-03    5.4758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.4524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .84662        .16660        .24464E-03   -.98362    
  28  Prefactor     .99249        .15787        .21504E-03   -.92980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09438e-10
Minuit parameter uncertainties:
  1  1.81647e-05
  2  22.1137
  3  1.31173e-05
  4  6.19181e-07
  5  1.64812e-06
  6  4.5812
  7  5.92387
  8  9.38497e-08
  9  18.8051
  10  0.000311183
  11  2.2852e-06
  12  6.77659e-06
  13  32.7626
  14  33.6844
  15  68.6665
  16  6.39175
  17  2.68676e-06
  18  3.1225
  19  0.000283447
  20  5.05295e-07
  21  140.331
  22  29.7672
  23  0.455189
  24  1.7899
  25  2.73484e-06
  26  8.78368e-06
  27  0.1667
  28  0.157943
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  9.055e+01  3.276e+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.925e-01  1.579e-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:  8.466e-01  1.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.24
Ra Dec: 224.753 71.673
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 9.51e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 2.76e-05 +/- 1.00e-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) = 7432.36758485
delta logL = 0.465008576401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7432.36747069
delta logL = 0.465122736429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    115.35       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1793       1.0000          .0000       10.000    
     3 'Normalizat'    .86818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97781       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=   7432.367     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      266 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     115.24        760.42        .93651E-03   -.20030E-04
   2  Index         2.1783        3.2597        .12962        .63574E-04
   3  Normalizat    .86830        .16451        .44494E-01   -.66687E-04
   4  Prefactor     .97781        .13388        .45989E-01   -.91471E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 115.244
  Index      = 2.17835
  Normalizat = 0.8683
  Prefactor  = 0.97781
 **********
 **   18 **HESSE 
 **********

 FCN=   7432.367     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     115.24        46.623        .37460E-04   -1.3557    
   2  Index         2.1783        .31556        .52611E-02   -.59962    
   3  Normalizat    .86830        .16455        .24191E-03   -.97583    
   4  Prefactor     .97781        .15464        .21641E-03   -.93473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01198e-11
Minuit parameter uncertainties:
  1  46.638
  2  0.315871
  3  0.164642
  4  0.154709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929014': 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) = 7432.36745902
delta logL = 0.465134399854

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.152e+02  4.664e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.178e+00  3.159e-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.778e-01  1.547e-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:  8.683e-01  1.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.10
Ra Dec: 224.753 71.673
Photon Index (Free Index): 2.18 +/- 0.32
Photon Flux (Free Index): 8.04e-08 +/- 3.39e-08
Energy Flux (Free Index): 3.76e-05 +/- 2.05e-05

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/929014/cmap_HighResolution_497750401_498009601_4FGL_J1459.0+7140_daily_bin997.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.51e-08', energy_flux2='3.76e-05', photon_flux_error='3.44e-08', dlogl='4.65e-01', energy_flux='2.76e-05', photon_flux2='8.04e-08', job_status='DONE', time_completed='2021-09-10 17:35:32.929684', photon_index_error2='0.32', photon_index2='2.18', ts='18.24', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='0.85', time_epoch_completed='1631320532.93', return_code='0', job_id='929014', GAL2='0.98', EG2='0.87', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='3.39e-08', ts2='19.10', photon_index='2.50' WHERE bin_id='997' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:35:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 929014: <4FGL_J1459.0+7140_daily_bin997> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin997> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 17:21:02 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:21:04 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:21:04 2021
Terminated at Fri Sep 10 17:35:33 2021
Results reported at Fri Sep 10 17:35:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin997 224.753 71.6733 497750401 498009601 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 :                                   850.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

