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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin2
RA = 224.753, Dec = 71.6733
tmin = 239846401, tmax = 240105601
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='923310', job_status='RUN', time_executed='2021-09-10 17:03:06.001743', time_epoch_executed='1631318586.0' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/923310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/923310/ft1_4FGL_J1459.0+7140_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/923310/ft2_4FGL_J1459.0+7140_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/923310/ft1_4FGL_J1459.0+7140_daily_bin2.fits outfile=/scratch/kocevski/923310/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin2.fits ra=224.753 dec=71.6733 rad=12.0 tmin=239846401.0 tmax=240105601.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.46
user 1.25
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/923310/ft1_filtered_4FGL_J1459.0+7140_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/923310/ft2_4FGL_J1459.0+7140_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/923310/ltcube_239846401_240105601_4FGL_J1459.0+7140_daily_bin2.fits outfile=/scratch/kocevski/923310/expmap_239846401_240105601_4FGL_J1459.0+7140_daily_bin2.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/923310/ltcube_239846401_240105601_4FGL_J1459.0+7140_daily_bin2.fits
.....................!
real 190.99
user 186.55
sys 4.09

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/923310/ft1_filtered_4FGL_J1459.0+7140_daily_bin2.fits scfile=/scratch/kocevski/923310/ft2_4FGL_J1459.0+7140_daily_bin2.fits outfile=/scratch/kocevski/923310/cmap_239846401_240105601_4FGL_J1459.0+7140_daily_bin2.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/923310/ft1_filtered_4FGL_J1459.0+7140_daily_bin2.fits scfile=/scratch/kocevski/923310/ft2_4FGL_J1459.0+7140_daily_bin2.fits outfile=/scratch/kocevski/923310/cmap_HighResolution_239846401_240105601_4FGL_J1459.0+7140_daily_bin2.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/923310/ft1_filtered_4FGL_J1459.0+7140_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/923310/ft2_4FGL_J1459.0+7140_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/923310/Model_4FGL_J1459.0+7140_daily_bin2.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/923310/ft1_filtered_4FGL_J1459.0+7140_daily_bin2.fits.....................!
real 57.82
user 56.49
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .60825E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11427E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.061       1.0000         .10000E-03   10000.    
     9 'Prefactor '    132.80       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12972E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    62.932       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.694       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.703       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9697       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.093       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.337       1.0000         .10000E-03   10000.    
    23 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    37.144       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10790E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .90139       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88607       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=   5683.821     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3482 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.120       -.42473E-05** at limit **
   2  Prefactor     .10000E-03    26.970       -.89899E-05** at limit **
   3  Prefactor     .10000E-03    11.130       -.23708E-07** at limit **
   4  Prefactor     .10001E-03    3.7920        .14492E-05** at limit **
   5  Prefactor     .10000E-03    6.6148        .58118E-07** at limit **
   6  Prefactor     .10000E-03    12.403       -.17392E-05** at limit **
   7  Prefactor     .10000E-03    3.3483        .66805E-08** at limit **
   8  Prefactor     35.064        19.416       -.57463E-06    .13224E-04
   9  Prefactor     132.74        70.114       -.17204E-04   -.78545E-04
  10  Prefactor     .10000E-03    450.43        .93241E-05** at limit **
  11  Prefactor     62.936        61.404        .10424E-05    .17068E-06
  12  Prefactor     .10000E-03    12.819        .44591E-06** at limit **
  13  Prefactor     31.696        33.402       -.99909E-06   -.51537E-05
  14  Prefactor     .10000E-03    17.400        .16345E-05** at limit **
  15  Prefactor     .10000E-03    21.948        .52378E-05** at limit **
  16  Prefactor     23.704        20.813       -.11737E-06   -.14300E-04
  17  Prefactor     .10000E-03    12.336        .17883E-05** at limit **
  18  norm          1.9697        3.1669       -.47836E-06   -.60618E-03
  19  Prefactor     .10000E-03    87.242       -.13161E-05** at limit **
  20  norm          11.095        13.795       -.13096E-05   -.16418E-04
  21  Prefactor     .10000E-03    126.30        .14139E-05** at limit **
  22  Prefactor     25.328        40.150        .73914E-06    .10021E-04
  23  norm          .10000E-03    .35147       -.49820E-07** at limit **
  24  Prefactor     .10000E-03    1.3837       -.41601E-07** at limit **
  25  Prefactor     37.137        23.003       -.52381E-06    .27962E-04
  26  Prefactor     .10000E-03    28.329        .63502E-05** at limit **
  27  Normalizat    .90127        .17246        .18181E-05   -.20536E-03
  28  Prefactor     .88608        .14844        .12962E-06   -.62761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 35.0637
  Prefactor  = 132.743
  Prefactor  = 0.0001
  Prefactor  = 62.9364
  Prefactor  = 0.0001
  Prefactor  = 31.6956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7045
  Prefactor  = 0.0001
  norm       = 1.96974
  Prefactor  = 0.0001
  norm       = 11.0951
  Prefactor  = 0.0001
  Prefactor  = 25.3279
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.1374
  Prefactor  = 0.0001
  Normalizat = 0.901268
  Prefactor  = 0.886078
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.821     FROM HESSE     STATUS=OK           513 CALLS     3995 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    8.7994        .28256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3637        .13471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.064        19.418        .67680E-04   -1.4523    
   9  Prefactor     132.74        70.221        .17472E-03   -1.3399    
  10  Prefactor     .10000E-03    450.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     62.936        61.407        .25292E-03   -1.4120    
  12  Prefactor     .10000E-03    12.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.696        33.457        .71173E-04   -1.4581    
  14  Prefactor     .10000E-03    17.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.704        20.897        .82276E-04   -1.4734    
  17  Prefactor     .10000E-03    12.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9697        3.1613        .16424E-03   -1.5427    
  19  Prefactor     .10000E-03    87.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.095        13.799        .12029E-03   -1.5042    
  21  Prefactor     .10000E-03    126.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.328        39.633        .79583E-04   -1.4701    
  23  norm          .10000E-03    .57190        .83046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1.4147        .86513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     37.137        22.462        .65761E-04   -1.4488    
  26  Prefactor     .10000E-03    28.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .90127        .19736        .24577E-03   -.96416    
  28  Prefactor     .88608        .17081        .22110E-03   -.96629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57312e-10
Minuit parameter uncertainties:
  1  5.05978e-06
  2  6.03439e-06
  3  2.70965e-06
  4  0.000429377
  5  1.38697e-05
  6  0.000189274
  7  8.06905e-07
  8  19.4219
  9  70.2647
  10  4.55969e-05
  11  61.4686
  12  3.11961e-06
  13  33.4768
  14  9.65799e-06
  15  1.21746e-05
  16  20.9038
  17  1.63876e-06
  18  3.1616
  19  2.42168e-05
  20  13.8033
  21  6.69266e-05
  22  39.6746
  23  3.67075e-06
  24  4.86014e-06
  25  22.4671
  26  8.99835e-05
  27  0.197515
  28  0.170912
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  3.170e+01  3.348e+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:  8.861e-01  1.709e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

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


TS (Fixed Index): 1.41
Ra Dec: 224.753 71.673
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 9.68e-06 +/- 1.02e-05

TS (Fixed Index): 1.41
Ra Dec: 224.753 71.673
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/923310/likelihoodResults_239846401_240105601_4FGL_J1459.0+7140_daily_bin2.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) = 5683.77614427
delta logL = 0.0450933156326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5683.77359784
delta logL = 0.0476397487073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.211       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1647       1.0000          .0000       10.000    
     3 'Normalizat'    .91498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87897       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=   5683.774     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      237 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.250        37.148        .69533E-04   -.49050E-06
   2  Index         2.1692        1.0197        .12297E-01   -.47792E-04
   3  Normalizat    .91463        .19219        .24415E-03   -.83816E-06
   4  Prefactor     .87920        .16900        .22184E-03    .56371E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.2504
  Index      = 2.16916
  Normalizat = 0.914634
  Prefactor  = 0.879201
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.774     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .23E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.250        37.432        .27813E-05   -1.4554    
   2  Index         2.1692        1.0263        .24594E-02   -.60185    
   3  Normalizat    .91463        .19235        .97660E-05   -.95948    
   4  Prefactor     .87920        .16912        .88737E-05   -.96872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29378e-13
Minuit parameter uncertainties:
  1  37.4586
  2  1.03719
  3  0.192493
  4  0.16922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/923310': 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) = 5683.77358811
delta logL = 0.047649475051

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  3.325e+01  3.746e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.169e+00  1.037e+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.792e-01  1.692e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

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


TS (Free Index): 1.50
Ra Dec: 224.753 71.673
Photon Index (Free Index): 2.17 +/- 1.04
Photon Flux (Free Index): 2.30e-08 +/- 4.14e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.37e-05

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/923310/cmap_HighResolution_239846401_240105601_4FGL_J1459.0+7140_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-03', comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='1.09e-05', photon_flux_error='3.51e-08', dlogl='4.76e-02', energy_flux='9.68e-06', photon_flux2='2.30e-08', job_status='DONE', time_completed='2021-09-10 17:16:57.225581', photon_index_error2='1.04', photon_index2='2.17', ts='1.41', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.37e-05', EG='0.90', time_epoch_completed='1631319417.23', return_code='0', job_id='923310', GAL2='0.88', EG2='0.91', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.14e-08', ts2='1.50', photon_index='2.50' WHERE bin_id='2' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:16:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 923310: <4FGL_J1459.0+7140_daily_bin2> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin2 224.753 71.6733 239846401 240105601 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 :                                   830.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             339.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            946 sec.

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

