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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin653
RA = 224.753, Dec = 71.6733
tmin = 408585601, tmax = 408844801
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='926437', job_status='RUN', time_executed='2021-09-10 17:15:29.191244', time_epoch_executed='1631319329.19' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926437

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926437/ft1_4FGL_J1459.0+7140_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926437/ft2_4FGL_J1459.0+7140_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926437/ft1_4FGL_J1459.0+7140_daily_bin653.fits outfile=/scratch/kocevski/926437/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin653.fits ra=224.753 dec=71.6733 rad=12.0 tmin=408585601.0 tmax=408844801.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.27
user 4.05
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926437/ft1_filtered_4FGL_J1459.0+7140_daily_bin653.fits" evtable="EVENTS" scfile=/scratch/kocevski/926437/ft2_4FGL_J1459.0+7140_daily_bin653.fits sctable="SC_DATA" outfile=/scratch/kocevski/926437/ltcube_408585601_408844801_4FGL_J1459.0+7140_daily_bin653.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/926437/ft2_4FGL_J1459.0+7140_daily_bin653.fits
.....................!
real 12.05
user 11.74
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926437/ft1_filtered_4FGL_J1459.0+7140_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/926437/ft2_4FGL_J1459.0+7140_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/926437/ltcube_408585601_408844801_4FGL_J1459.0+7140_daily_bin653.fits outfile=/scratch/kocevski/926437/expmap_408585601_408844801_4FGL_J1459.0+7140_daily_bin653.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/926437/ltcube_408585601_408844801_4FGL_J1459.0+7140_daily_bin653.fits
.....................!
real 189.00
user 184.85
sys 3.74

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/926437/ft1_filtered_4FGL_J1459.0+7140_daily_bin653.fits scfile=/scratch/kocevski/926437/ft2_4FGL_J1459.0+7140_daily_bin653.fits outfile=/scratch/kocevski/926437/cmap_408585601_408844801_4FGL_J1459.0+7140_daily_bin653.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926437/ft1_filtered_4FGL_J1459.0+7140_daily_bin653.fits scfile=/scratch/kocevski/926437/ft2_4FGL_J1459.0+7140_daily_bin653.fits outfile=/scratch/kocevski/926437/cmap_HighResolution_408585601_408844801_4FGL_J1459.0+7140_daily_bin653.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/926437/ft1_filtered_4FGL_J1459.0+7140_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/926437/ft2_4FGL_J1459.0+7140_daily_bin653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/926437/Model_4FGL_J1459.0+7140_daily_bin653.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/926437/ft1_filtered_4FGL_J1459.0+7140_daily_bin653.fits.....................!
real 26.73
user 25.49
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75796E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48809E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.334       1.0000         .10000E-03   10000.    
     5 'Prefactor '    46.988       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.843       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6364       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2024       1.0000         .10000E-03   10000.    
    10 'Prefactor '    191.03       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.466       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10468E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    333.24       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.778       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .33865E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.284       1.0000         .10000E-03   10000.    
    22 'Prefactor '    81.897       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7233       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .30420E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .41978       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1767       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=   1529.681     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3976 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    1119.8       -.25457E-04** at limit **
   2  Prefactor     .10000E-03    231.30        .25544E-05** at limit **
   3  Prefactor     .10000E-03    47.331        .27055E-06** at limit **
   4  Prefactor     27.318        18.913        .19148E-05   -.23841E-04
   5  Prefactor     46.972        41.796        .23545E-05    .20488E-04
   6  Prefactor     29.857        36.584        .13921E-05   -.32370E-04
   7  Prefactor     7.6421        21.663       -.20690E-05   -.10683E-04
   8  Prefactor     .10000E-03    25.421        .67759E-08** at limit **
   9  Prefactor     1.1577        965.03        .42708E-05   -.10120E-04
  10  Prefactor     191.02        1453.5       -.66953E-05   -.42733E-07
  11  Prefactor     .10000E-03    106.13        .42224E-05** at limit **
  12  Prefactor     .10000E-03    14.586        .93062E-07** at limit **
  13  Prefactor     25.465        47.045       -.85082E-06    .22139E-05
  14  Prefactor     .10000E-03    63.398       -.36713E-05** at limit **
  15  Prefactor     333.29        222.92        .17756E-05   -.95222E-05
  16  Prefactor     20.775        30.611       -.14706E-05   -.26637E-05
  17  Prefactor     .10000E-03    43.182        .20511E-05** at limit **
  18  norm          .10000E-03    4.3717        .48107E-06** at limit **
  19  Prefactor     .10000E-03    148.58        .33967E-05** at limit **
  20  norm          .10001E-03    1067.7       -.55858E-04** at limit **
  21  Prefactor     14.438        6122.6        .36398E-04   -.28640E-05
  22  Prefactor     81.894        72.784       -.64610E-06    .57331E-05
  23  norm          .10000E-03    .51062        .10686E-07** at limit **
  24  Prefactor     2.7181        6.8194        .40738E-06    .28268E-03
  25  Prefactor     .10000E-03    18.932        .37323E-07** at limit **
  26  Prefactor     .10006E-03    294.26       -.53859E-04** at limit **
  27  Normalizat    .41962        .42136        .10291E-04    .60695E-04
  28  Prefactor     1.1769        .35556       -.11464E-05    .18848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100079
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 27.3179
  Prefactor  = 46.9715
  Prefactor  = 29.8574
  Prefactor  = 7.64209
  Prefactor  = 0.0001
  Prefactor  = 1.1577
  Prefactor  = 191.019
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 25.4654
  Prefactor  = 0.000100001
  Prefactor  = 333.293
  Prefactor  = 20.7752
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.00010001
  Prefactor  = 14.4377
  Prefactor  = 81.8944
  norm       = 0.0001
  Prefactor  = 2.71811
  Prefactor  = 0.0001
  Prefactor  = 0.000100056
  Normalizat = 0.419622
  Prefactor  = 1.1769
 **********
 **   18 **HESSE 
 **********

 FCN=   1529.681     FROM HESSE     STATUS=OK           519 CALLS     4495 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    1130.3        .18569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    232.39        .21169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    47.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.318        18.977        .76627E-04   -1.4662    
   5  Prefactor     46.972        41.767        .58495E-04   -1.4336    
   6  Prefactor     29.857        36.616        .73342E-04   -1.4615    
   7  Prefactor     7.6421        21.704        .14512E-03   -1.5155    
   8  Prefactor     .10000E-03    25.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1577        1025.4        .41372E-02   -1.5493    
  10  Prefactor     191.02        1454.3        .14611E-03   -1.2935    
  11  Prefactor     .10000E-03    106.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.588        .14593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.465        47.049        .79381E-04   -1.4698    
  14  Prefactor     .10000E-03    63.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     333.29        222.31        .11143E-03   -1.2036    
  16  Prefactor     20.775        30.600        .87870E-04   -1.4796    
  17  Prefactor     .10000E-03    43.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4015        .79816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    148.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    108.78        .10262       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.438        6107.0        .10598E-03   -1.4948    
  22  Prefactor     81.894        72.772        .44383E-04   -1.3896    
  23  norm          .10000E-03    .51159        .27288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.7181        7.0288        .76245E-03   -1.5378    
  25  Prefactor     .10000E-03    18.937        .16626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10006E-03    300.69        .21384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .41962        .45417        .34541E-03   -1.1630    
  28  Prefactor     1.1769        .39365        .20051E-03   -.87045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2728e-10
Minuit parameter uncertainties:
  1  0.0192552
  2  0.00170574
  3  4.47193e-05
  4  18.9816
  5  41.7934
  6  36.644
  7  21.726
  8  8.45021e-05
  9  70.1439
  10  1093.4
  11  0.0010504
  12  8.95698e-06
  13  47.1175
  14  0.000499986
  15  222.882
  16  30.6235
  17  0.000314783
  18  3.18781e-05
  19  0.00104106
  20  0.00209572
  21  402.199
  22  72.8511
  23  1.66535e-06
  24  7.03097
  25  2.40019e-05
  26  0.00825572
  27  0.458245
  28  0.394633
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  2.547e+01  4.712e+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.177e+00  3.946e-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:  4.196e-01  4.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 224.753 71.673
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/926437/likelihoodResults_408585601_408844801_4FGL_J1459.0+7140_daily_bin653.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): 0
logL (Free Index) = 1529.52526143
delta logL = 0.155794356662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1529.50167397
delta logL = 0.179381808041

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.428       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8736       1.0000          .0000       10.000    
     3 'Normalizat'    .43398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1620       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=   1529.502     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      282 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.439        71.923        .58224E-04   -.34268E-05
   2  Index         1.8737        .85913        .75309E-02   -.43956E-05
   3  Normalizat    .43425        .38964        .33951E-03    .44419E-04
   4  Prefactor     1.1618        .37062        .20145E-03    .11906E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.4392
  Index      = 1.87372
  Normalizat = 0.434254
  Prefactor  = 1.16175
 **********
 **   18 **HESSE 
 **********

 FCN=   1529.502     FROM HESSE     STATUS=OK            23 CALLS      305 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.439        71.690        .11645E-04   -1.4329    
   2  Index         1.8737        .85644        .30124E-03   -.67546    
   3  Normalizat    .43425        .38980        .13580E-04   -1.1557    
   4  Prefactor     1.1618        .37078        .40290E-04   -.87516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47083e-11
Minuit parameter uncertainties:
  1  71.821
  2  0.863467
  3  0.392275
  4  0.371614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926437': 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) = 1529.50167368
delta logL = 0.179382100156

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  4.744e+01  7.182e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  1.874e+00  8.635e-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:  1.162e+00  3.716e-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:  4.343e-01  3.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
Ra Dec: 224.753 71.673

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/926437/cmap_HighResolution_408585601_408844801_4FGL_J1459.0+7140_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', job_status='DONE', photon_flux_upper_limit='1.90e-07', time_completed='2021-09-10 17:23:41.869763', job_id='926437', GAL2='1.16', fit_tolerance='1e-08', EG2='0.43', EG='0.42', time_epoch_completed='1631319821.87', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.79e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='653' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:23:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 926437: <4FGL_J1459.0+7140_daily_bin653> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin653> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 17:11:30 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:11:32 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:11:32 2021
Terminated at Fri Sep 10 17:23:42 2021
Results reported at Fri Sep 10 17:23:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin653 224.753 71.6733 408585601 408844801 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 :                                   492.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

