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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin38
RA = 224.753, Dec = 71.6733
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='923363', job_status='RUN', time_executed='2021-09-10 17:01:33.799684', time_epoch_executed='1631318493.8' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/923363

Creating custom pfile directory:
/scratch/kocevski/923363/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/923363/ft1_4FGL_J1459.0+7140_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/923363/ft2_4FGL_J1459.0+7140_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/923363/ft1_4FGL_J1459.0+7140_daily_bin38.fits outfile=/scratch/kocevski/923363/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin38.fits ra=224.753 dec=71.6733 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.44
user 1.26
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/923363/ft1_filtered_4FGL_J1459.0+7140_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/923363/ft2_4FGL_J1459.0+7140_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/923363/ltcube_249177601_249436801_4FGL_J1459.0+7140_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/923363/ft2_4FGL_J1459.0+7140_daily_bin38.fits
.....................!
real 12.61
user 12.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/923363/ft1_filtered_4FGL_J1459.0+7140_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/923363/ft2_4FGL_J1459.0+7140_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/923363/ltcube_249177601_249436801_4FGL_J1459.0+7140_daily_bin38.fits outfile=/scratch/kocevski/923363/expmap_249177601_249436801_4FGL_J1459.0+7140_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/923363/ltcube_249177601_249436801_4FGL_J1459.0+7140_daily_bin38.fits
.....................!
real 191.21
user 186.41
sys 4.42

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/923363/ft1_filtered_4FGL_J1459.0+7140_daily_bin38.fits scfile=/scratch/kocevski/923363/ft2_4FGL_J1459.0+7140_daily_bin38.fits outfile=/scratch/kocevski/923363/cmap_249177601_249436801_4FGL_J1459.0+7140_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=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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/923363/ft1_filtered_4FGL_J1459.0+7140_daily_bin38.fits scfile=/scratch/kocevski/923363/ft2_4FGL_J1459.0+7140_daily_bin38.fits outfile=/scratch/kocevski/923363/cmap_HighResolution_249177601_249436801_4FGL_J1459.0+7140_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=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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .95513       1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.084       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2476       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8292       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.931       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9728       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5053       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9329       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.2548       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.394       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1264       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .99946E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    39.298       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .63322       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3172       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=   6079.133     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     3536 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.038       -.12814E-06** at limit **
   2  Prefactor     1.0237        204.99       -.12471E-04   -.50947E-05
   3  Prefactor     52.084        35.360        .11775E-06    .17536E-04
   4  Prefactor     2.2437        6.2381       -.22099E-05   -.83047E-04
   5  Prefactor     .10000E-03    9.1356       -.76444E-07** at limit **
   6  Prefactor     .10000E-03    9.6609       -.66668E-06** at limit **
   7  Prefactor     8.8146        11.418       -.23147E-06    .37052E-04
   8  Prefactor     33.932        21.491        .24755E-06    .33498E-04
   9  Prefactor     .10000E-03    36.993       -.53043E-06** at limit **
  10  Prefactor     .10000E-03    264.14        .26118E-06** at limit **
  11  Prefactor     .10000E-03    48.185        .76456E-07** at limit **
  12  Prefactor     .10000E-03    5.9376       -.65755E-07** at limit **
  13  Prefactor     1.9599        96.855       -.33627E-05   -.58557E-05
  14  Prefactor     9.4857        68.092       -.10014E-06    .38072E-05
  15  Prefactor     .10000E-03    66.267        .16429E-06** at limit **
  16  Prefactor     5.9318        10.204       -.40810E-06   -.80717E-05
  17  Prefactor     .10000E-03    9.5123       -.48695E-07** at limit **
  18  norm          3.2544        2.6288       -.17547E-06   -.57985E-04
  19  Prefactor     .10000E-03    155.94       -.15476E-05** at limit **
  20  norm          .10000E-03    6.1701        .38205E-07** at limit **
  21  Prefactor     62.310        148.69        .28921E-06    .71685E-05
  22  Prefactor     .10000E-03    64.630        .14594E-06** at limit **
  23  norm          1.1278        .93590       -.71515E-07   -.63014E-03
  24  Prefactor     .10000E-03    1.9970       -.37494E-06** at limit **
  25  Prefactor     .10009E-03    24.875        .28297E-05** at limit **
  26  Prefactor     39.282        34.021        .10189E-05    .12464E-04
  27  Normalizat    .63375        .19268        .18352E-05   -.23750E-04
  28  Prefactor     1.3169        .16779       -.53639E-06    .15724E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.02372
  Prefactor  = 52.0839
  Prefactor  = 2.24368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.8146
  Prefactor  = 33.9321
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.95985
  Prefactor  = 9.48575
  Prefactor  = 0.0001
  Prefactor  = 5.93178
  Prefactor  = 0.0001
  norm       = 3.25435
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 62.3104
  Prefactor  = 0.0001
  norm       = 1.12782
  Prefactor  = 0.0001
  Prefactor  = 0.000100094
  Prefactor  = 39.2825
  Normalizat = 0.63375
  Prefactor  = 1.31689
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.133     FROM HESSE     STATUS=OK           529 CALLS     4065 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0237        209.61        .72038E-02   -1.5506    
   3  Prefactor     52.084        35.367        .55573E-04   -1.4263    
   4  Prefactor     2.2437        6.2233        .27410E-03   -1.5408    
   5  Prefactor     .10000E-03    9.1503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.4654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8146        11.446        .13489E-03   -1.5114    
   8  Prefactor     33.932        21.418        .68793E-04   -1.4542    
   9  Prefactor     .10000E-03    37.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    264.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    48.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9599        97.229        .29518E-03   -1.5428    
  14  Prefactor     9.4857        68.157        .12998E-03   -1.5092    
  15  Prefactor     .10000E-03    66.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9318        10.197        .16486E-03   -1.5221    
  17  Prefactor     .10000E-03    9.5135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.2544        2.6310        .11034E-03   -1.5347    
  19  Prefactor     .10000E-03    156.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.1731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.310        149.01        .25400E-03   -1.4128    
  22  Prefactor     .10000E-03    65.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1278        .91987        .61515E-04   -1.5496    
  24  Prefactor     .10000E-03    17.070        .18880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10009E-03    18.436        .93936E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     39.282        34.322        .63939E-04   -1.4454    
  27  Normalizat    .63375        .21431        .30654E-03   -1.0657    
  28  Prefactor     1.3169        .18998        .20651E-03   -.82806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82068e-08
Minuit parameter uncertainties:
  1  4.06637e-05
  2  29.4004
  3  35.3809
  4  6.2251
  5  1.17135e-05
  6  9.66968e-05
  7  11.4485
  8  21.4225
  9  1.98265e-05
  10  0.00109555
  11  4.47299e-05
  12  1.13814e-06
  13  27.6553
  14  50.9355
  15  6.08714e-06
  16  10.2002
  17  6.39179e-07
  18  2.63114
  19  0.000693139
  20  5.39634e-07
  21  149.914
  22  7.45175e-05
  23  0.919884
  24  3.21923e-05
  25  0.00263365
  26  34.339
  27  0.214591
  28  0.190079
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.960e+00  2.766e+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:  1.317e+00  1.901e-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:  6.337e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 224.753 71.673
Photon Flux Upper Limit: 8.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/923363/likelihoodResults_249177601_249436801_4FGL_J1459.0+7140_daily_bin38.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6078.32997867
delta logL = 0.803321773798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6077.7606922
delta logL = 1.37260824842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10797E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .53328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3796       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=   6077.761     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      433 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10794E-03    .23977E-03    .11979E-04** at limit **
   2  Index        10.0000        .62431        .50000    ** at limit **
   3  Normalizat    .53346        .20972        .33232E-03   -.36961E-03
   4  Prefactor     1.3794        .19140        .20241E-03   -.37678E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107942
  Index      = 10
  Normalizat = 0.533459
  Prefactor  = 1.37939
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.761     FROM HESSE     STATUS=OK            33 CALLS      466 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10794E-03    .22649E-03    .47914E-06   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .59653        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .53346        .20918        .13293E-04   -1.1089    
   4  Prefactor     1.3794        .19125        .40482E-04   -.80976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88945e-10
Minuit parameter uncertainties:
  1  8.48243e-05
  2  7.54506e-05
  3  0.209494
  4  0.191345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/923363': 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) = 6077.76069078
delta logL = 1.3726096676

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.079e-04  8.482e-05  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  1.000e+01  7.545e-05  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:  1.379e+00  1.913e-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:  5.335e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.00
Ra Dec: 224.753 71.673
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 7.65e-08 +/- 5.83e-08
Energy Flux (Free Index): 8.55e-06 +/- 6.55e-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/923363/cmap_HighResolution_249177601_249436801_4FGL_J1459.0+7140_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-03', comment='SUCCESS', energy_flux2='8.55e-06', dlogl='1.37e+00', photon_flux2='7.65e-08', job_status='DONE', time_completed='2021-09-10 17:16:34.583505', photon_index_error2='0.00', photon_index2='10.00', ts='0.01', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='8.15e-08', energy_flux_error2='6.55e-06', EG='0.63', time_epoch_completed='1631319394.58', return_code='0', job_id='923363', GAL2='1.38', EG2='0.53', return_code2='0', photon_flux_error2='5.83e-08', ts2='3.00', photon_index='2.50' WHERE bin_id='38' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:16:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 923363: <4FGL_J1459.0+7140_daily_bin38> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin38 224.753 71.6733 249177601 249436801 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 :                                   900.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             352.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

