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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin686
RA = 224.753, Dec = 71.6733
tmin = 417139201, tmax = 417398401
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='926489', job_status='RUN', time_executed='2021-09-10 17:11:53.026940', time_epoch_executed='1631319113.03' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926489

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926489/ft1_4FGL_J1459.0+7140_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926489/ft2_4FGL_J1459.0+7140_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926489/ft1_4FGL_J1459.0+7140_daily_bin686.fits outfile=/scratch/kocevski/926489/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin686.fits ra=224.753 dec=71.6733 rad=12.0 tmin=417139201.0 tmax=417398401.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 5.63
user 5.37
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926489/ft1_filtered_4FGL_J1459.0+7140_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/926489/ft2_4FGL_J1459.0+7140_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/926489/ltcube_417139201_417398401_4FGL_J1459.0+7140_daily_bin686.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/926489/ft2_4FGL_J1459.0+7140_daily_bin686.fits
.....................!
real 12.43
user 12.06
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926489/ft1_filtered_4FGL_J1459.0+7140_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/926489/ft2_4FGL_J1459.0+7140_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/926489/ltcube_417139201_417398401_4FGL_J1459.0+7140_daily_bin686.fits outfile=/scratch/kocevski/926489/expmap_417139201_417398401_4FGL_J1459.0+7140_daily_bin686.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/926489/ltcube_417139201_417398401_4FGL_J1459.0+7140_daily_bin686.fits
.....................!
real 190.07
user 184.71
sys 4.91

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/926489/ft1_filtered_4FGL_J1459.0+7140_daily_bin686.fits scfile=/scratch/kocevski/926489/ft2_4FGL_J1459.0+7140_daily_bin686.fits outfile=/scratch/kocevski/926489/cmap_417139201_417398401_4FGL_J1459.0+7140_daily_bin686.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926489/ft1_filtered_4FGL_J1459.0+7140_daily_bin686.fits scfile=/scratch/kocevski/926489/ft2_4FGL_J1459.0+7140_daily_bin686.fits outfile=/scratch/kocevski/926489/cmap_HighResolution_417139201_417398401_4FGL_J1459.0+7140_daily_bin686.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/926489/ft1_filtered_4FGL_J1459.0+7140_daily_bin686.fits', '/scratch/kocevski/926489/ft2_4FGL_J1459.0+7140_daily_bin686.fits', expMap='/scratch/kocevski/926489/expmap_417139201_417398401_4FGL_J1459.0+7140_daily_bin686.fits', expCube='/scratch/kocevski/926489/ltcube_417139201_417398401_4FGL_J1459.0+7140_daily_bin686.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/926489/Model_4FGL_J1459.0+7140_daily_bin686.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/926489/ft1_filtered_4FGL_J1459.0+7140_daily_bin686.fits
Spacecraft file(s): /scratch/kocevski/926489/ft2_4FGL_J1459.0+7140_daily_bin686.fits
Exposure map: /scratch/kocevski/926489/expmap_417139201_417398401_4FGL_J1459.0+7140_daily_bin686.fits
Exposure cube: /scratch/kocevski/926489/ltcube_417139201_417398401_4FGL_J1459.0+7140_daily_bin686.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/926489/Model_4FGL_J1459.0+7140_daily_bin686.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5670.9277609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.557       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .88438E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19243E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    523.27       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.622       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.969       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.2325       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .33513       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6720       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.872       1.0000         .10000E-03   10000.    
    26 'Prefactor '    17.760       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1252       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87193       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=   5670.821     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3517 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.083        .16948E-05** at limit **
   2  Prefactor     25.557        25.658       -.88708E-07    .70971E-05
   3  Prefactor     .11202E-03    26.512       -.37668E-05** at limit **
   4  Prefactor     .10002E-03    2.7316       -.13170E-05** at limit **
   5  Prefactor     .10000E-03    10.086        .17040E-05** at limit **
   6  Prefactor     .10000E-03    4.5529        .26192E-07** at limit **
   7  Prefactor     .10000E-03    9.3970       -.76552E-06** at limit **
   8  Prefactor     .10000E-03    5.7211        .14138E-07** at limit **
   9  Prefactor     .10000E-03    19.626       -.21828E-05** at limit **
  10  Prefactor     523.02        562.05       -.30964E-04   -.89184E-05
  11  Prefactor     .10000E-03    23.578        .29756E-05** at limit **
  12  Prefactor     .10000E-03    36.714       -.21109E-05** at limit **
  13  Prefactor     .10000E-03    20.245       -.10868E-05** at limit **
  14  Prefactor     .10000E-03    30.418       -.36224E-05** at limit **
  15  Prefactor     18.624        45.054       -.11416E-05    .53135E-05
  16  Prefactor     18.970        18.256       -.60494E-06    .40832E-04
  17  Prefactor     .10000E-03    14.389        .17603E-05** at limit **
  18  norm          8.2325        3.4658       -.88134E-07    .43628E-04
  19  Prefactor     .10000E-03    39.020        .17828E-05** at limit **
  20  norm          .10000E-03    25.085        .28041E-05** at limit **
  21  Prefactor     .10000E-03    526.60       -.38932E-04** at limit **
  22  Prefactor     .10000E-03    19.620       -.12618E-05** at limit **
  23  norm          .33300        1.0081       -.29171E-05    .27247E-03
  24  Prefactor     4.6716        6.6528        .63737E-07    .45556E-04
  25  Prefactor     14.941        34.606        .44267E-05    .10020E-03
  26  Prefactor     17.759        46.517       -.88642E-06    .17463E-04
  27  Normalizat    1.1252        .18041        .22674E-05    .55208E-03
  28  Prefactor     .87196        .16037        .90570E-06    .53138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.5569
  Prefactor  = 0.000112021
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 523.017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6243
  Prefactor  = 18.9695
  Prefactor  = 0.0001
  norm       = 8.23248
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.332999
  Prefactor  = 4.67162
  Prefactor  = 14.9408
  Prefactor  = 17.7586
  Normalizat = 1.1252
  Prefactor  = 0.871964
 **********
 **   18 **HESSE 
 **********

 FCN=   5670.821     FROM HESSE     STATUS=OK           519 CALLS     4036 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.557        25.659        .79240E-04   -1.4696    
   3  Prefactor     .11202E-03    27.624        .13235       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    11.183        .23647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5612        .15684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.6458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7259        .17592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     523.02        562.24        .89813E-04   -1.1093    
  11  Prefactor     .10000E-03    23.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.624        45.065        .92814E-04   -1.4845    
  16  Prefactor     18.970        18.308        .91960E-04   -1.4837    
  17  Prefactor     .10000E-03    14.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.2325        3.4667        .88267E-04   -1.5134    
  19  Prefactor     .10000E-03    39.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    25.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    528.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .33300        1.0069        .94496E-04   -1.5593    
  24  Prefactor     4.6716        6.5328        .16306E-03   -1.5276    
  25  Prefactor     14.941        34.598        .10386E-03   -1.4935    
  26  Prefactor     17.759        45.780        .95039E-04   -1.4865    
  27  Normalizat    1.1252        .20973        .23687E-03   -.88947    
  28  Prefactor     .87196        .18772        .23938E-03   -.97128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20265e-09
Minuit parameter uncertainties:
  1  1.85038e-05
  2  25.6702
  3  0.0364629
  4  0.0010068
  5  2.04625e-05
  6  3.44792e-06
  7  4.38177e-05
  8  6.71631e-06
  9  3.30006e-05
  10  568.393
  11  3.04079e-05
  12  0.000126276
  13  5.39964e-05
  14  9.2111e-05
  15  45.1471
  16  18.3129
  17  8.22017e-06
  18  3.46679
  19  1.25167e-06
  20  3.2811e-05
  21  0.00251306
  22  4.78913e-05
  23  1.00693
  24  6.53375
  25  34.6446
  26  45.8703
  27  0.209889
  28  0.187861
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  5.400e-05  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:  8.720e-01  1.879e-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.125e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/926489/likelihoodResults_417139201_417398401_4FGL_J1459.0+7140_daily_bin686.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) = 5670.82128328
delta logL = -0.000234650909988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5670.82104888
delta logL = -2.43449903792e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4051       1.0000          .0000       10.000    
     3 'Normalizat'    1.1252       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87197       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=   5670.821     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6166.6        .90712E-02** at limit **
   2  Index         2.4269        7.2037        .50000       -.10586E-04
   3  Normalizat    1.1252        .64935E-01    .53571E-01    .23731E-04
   4  Prefactor     .87196        .58741E-01    .44647E-01    .23370E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42685
  Normalizat = 1.1252
  Prefactor  = 0.871963
 **********
 **   18 **HESSE 
 **********

 FCN=   5670.821     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4269        6.1307        .50000       -.54057    
   3  Normalizat    1.1252        .20414        .23687E-03   -.88947    
   4  Prefactor     .87196        .18503        .23938E-03   -.97128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32394e-10
Minuit parameter uncertainties:
  1  0.00015615
  2  5.52263
  3  0.204283
  4  0.185162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926489': 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) = 5670.82104882
delta logL = -1.84214513865e-07

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  1.561e-04  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.427e+00  5.523e+00  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:  8.720e-01  1.852e-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.125e+00  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/926489/cmap_HighResolution_417139201_417398401_4FGL_J1459.0+7140_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-10 17:26:14.964140', job_id='926489', GAL2='0.87', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631319974.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-1.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='686' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:26:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 926489: <4FGL_J1459.0+7140_daily_bin686> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin686 224.753 71.6733 417139201 417398401 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 :                                   859.08 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             308.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

