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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin1
RA = 224.753, Dec = 71.6733
tmin = 239587201, tmax = 239846401
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='923309', job_status='RUN', time_executed='2021-09-10 17:02:39.839208', time_epoch_executed='1631318559.84' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/923309

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/923309/ft1_4FGL_J1459.0+7140_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/923309/ft2_4FGL_J1459.0+7140_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/923309/ft1_4FGL_J1459.0+7140_daily_bin1.fits outfile=/scratch/kocevski/923309/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1.fits ra=224.753 dec=71.6733 rad=12.0 tmin=239587201.0 tmax=239846401.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.29
user 1.13
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/923309/ft1_filtered_4FGL_J1459.0+7140_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/923309/ft2_4FGL_J1459.0+7140_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/923309/ltcube_239587201_239846401_4FGL_J1459.0+7140_daily_bin1.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/923309/ft2_4FGL_J1459.0+7140_daily_bin1.fits
.....................!
real 12.48
user 12.12
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/923309/ft1_filtered_4FGL_J1459.0+7140_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/923309/ft2_4FGL_J1459.0+7140_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/923309/ltcube_239587201_239846401_4FGL_J1459.0+7140_daily_bin1.fits outfile=/scratch/kocevski/923309/expmap_239587201_239846401_4FGL_J1459.0+7140_daily_bin1.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/923309/ltcube_239587201_239846401_4FGL_J1459.0+7140_daily_bin1.fits
.....................!
real 190.62
user 185.30
sys 4.96

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/923309/ft1_filtered_4FGL_J1459.0+7140_daily_bin1.fits scfile=/scratch/kocevski/923309/ft2_4FGL_J1459.0+7140_daily_bin1.fits outfile=/scratch/kocevski/923309/cmap_239587201_239846401_4FGL_J1459.0+7140_daily_bin1.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/923309/ft1_filtered_4FGL_J1459.0+7140_daily_bin1.fits scfile=/scratch/kocevski/923309/ft2_4FGL_J1459.0+7140_daily_bin1.fits outfile=/scratch/kocevski/923309/cmap_HighResolution_239587201_239846401_4FGL_J1459.0+7140_daily_bin1.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.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11106E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.955       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1362       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .46944E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10609E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.372       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    100.15       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.776       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.780       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1558       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .80007       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94143       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=   4947.533     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3486 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.936       -.95804E-05** at limit **
   2  Prefactor     32.957        32.213       -.10816E-05    .11396E-04
   3  Prefactor     .10000E-03    21.489        .63911E-05** at limit **
   4  Prefactor     8.1295        8.3152        .35675E-05   -.34940E-03
   5  Prefactor     .10153E-03    17.985        .40379E-05** at limit **
   6  Prefactor     .10000E-03    8.1662       -.10312E-05** at limit **
   7  Prefactor     .10000E-03    27.672       -.11431E-04** at limit **
   8  Prefactor     35.373        24.236        .15234E-05    .74900E-04
   9  Prefactor     .10000E-03    29.152       -.94182E-05** at limit **
  10  Prefactor     .10000E-03    388.02       -.17828E-04** at limit **
  11  Prefactor     100.12        124.96       -.25609E-04    .19202E-04
  12  Prefactor     17.773        21.369        .13219E-06   -.92187E-05
  13  Prefactor     34.779        43.289        .21909E-05   -.11750E-05
  14  Prefactor     .10000E-03    33.822        .13243E-04** at limit **
  15  Prefactor     .10000E-03    47.731       -.25851E-05** at limit **
  16  Prefactor     .10000E-03    5.5318       -.13964E-07** at limit **
  17  Prefactor     .10000E-03    18.255       -.28926E-05** at limit **
  18  norm          3.1559        2.6956        .11192E-07   -.68956E-05
  19  Prefactor     .10000E-03    33.593        .11684E-04** at limit **
  20  norm          .10000E-03    7.8820        .93237E-07** at limit **
  21  Prefactor     .10000E-03    49.378       -.10074E-04** at limit **
  22  Prefactor     .10000E-03    8.4146        .98679E-06** at limit **
  23  norm          .10000E-03    .21873       -.43452E-08** at limit **
  24  Prefactor     .10000E-03    .92233        .51934E-08** at limit **
  25  Prefactor     .10000E-03    22.248        .13645E-05** at limit **
  26  Prefactor     .10000E-03    8.6431       -.50733E-06** at limit **
  27  Normalizat    .80010        .18800       -.17200E-05   -.36906E-04
  28  Prefactor     .94130        .15669        .13402E-05   -.17786E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.9573
  Prefactor  = 0.0001
  Prefactor  = 8.12945
  Prefactor  = 0.000101533
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 35.3727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 100.116
  Prefactor  = 17.7732
  Prefactor  = 34.7788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.15588
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.800098
  Prefactor  = 0.941305
 **********
 **   18 **HESSE 
 **********

 FCN=   4947.533     FROM HESSE     STATUS=OK           505 CALLS     3991 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.957        32.214        .69802E-04   -1.4559    
   3  Prefactor     .10000E-03    21.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1295        8.3433        .14056E-03   -1.5138    
   5  Prefactor     .10153E-03    92.968        .55319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.1875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.373        24.267        .67382E-04   -1.4518    
   9  Prefactor     .10000E-03    29.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    388.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     100.12        124.90        .40173E-04   -1.3703    
  12  Prefactor     17.773        21.369        .94997E-04   -1.4865    
  13  Prefactor     34.779        43.516        .67951E-04   -1.4528    
  14  Prefactor     .10000E-03    33.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    47.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.5369        .16157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1559        2.6985        .10373E-03   -1.5353    
  19  Prefactor     .10000E-03    33.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.8901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    49.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.4166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .22764        .64176E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .93132        .65945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.6533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .80010        .22021        .25048E-03   -1.0007    
  28  Prefactor     .94130        .18441        .20707E-03   -.94712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6173e-08
Minuit parameter uncertainties:
  1  0.00027173
  2  32.2313
  3  4.38927e-05
  4  8.3445
  5  0.0239141
  6  0.000109908
  7  0.000521976
  8  24.2735
  9  7.14203e-05
  10  2.8261e-05
  11  125.235
  12  21.3782
  13  43.5561
  14  6.44947e-05
  15  2.11182e-05
  16  5.87188e-07
  17  1.81084e-06
  18  2.6986
  19  2.68704e-07
  20  1.18646e-07
  21  5.78937e-07
  22  7.31518e-08
  23  1.65146e-07
  24  4.70326e-07
  25  1.68192e-05
  26  1.40364e-06
  27  0.220452
  28  0.184538
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  3.478e+01  4.356e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.499e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
376        Scale:  7.570e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.413e-01  1.845e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  8.001e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/923309/likelihoodResults_239587201_239846401_4FGL_J1459.0+7140_daily_bin1.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) = 4947.08153
delta logL = 0.451036973609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4947.0432516
delta logL = 0.489315374088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5012       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0251       1.0000          .0000       10.000    
     3 'Normalizat'    .74130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98039       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4947.043     FROM MIGRAD    STATUS=FAILED        78 CALLS      282 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4993        204.46        .13847E-03   -.23389E-02
   2  Index         4.0251        7.0124        .52002E-02   -.63904E-03
   3  Normalizat    .74134        .20497        .25927E-03   -.87012E-03
   4  Prefactor     .98038        .18071        .20337E-03   -.79844E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4947.043     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      370 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4993        204.46        .28611E-03   -.23389E-02
   2  Index         4.0251        7.0124        .12260E-02   -.63904E-03
   3  Normalizat    .74134        .20497        .28503E-03   -.87012E-03
   4  Prefactor     .98038        .18071        .18590E-03   -.79844E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4947.043     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      397 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4984        18.008        .55390E-05   -.25976E-02
   2  Index         4.0252        1.6155        .20801E-03   -.53513E-03
   3  Normalizat    .74134        .21392        .51854E-04   -.84032E-03
   4  Prefactor     .98038        .18507        .40674E-04   -.77010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49837
  Index      = 4.0252
  Normalizat = 0.741341
  Prefactor  = 0.980385
 **********
 **   18 **HESSE 
 **********

 FCN=   4947.043     FROM HESSE     STATUS=OK            23 CALLS      420 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4984        17.655        .11078E-05   -1.5198    
   2  Index         4.0252        1.5849        .41601E-04   -.19622    
   3  Normalizat    .74134        .21396        .10371E-04   -1.0228    
   4  Prefactor     .98038        .18510        .81348E-05   -.93386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99677e-09
Minuit parameter uncertainties:
  1  17.6689
  2  1.61387
  3  0.214204
  4  0.185223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/923309': 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) = 4947.0432515
delta logL = 0.489315470873

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  6.498e+00  1.767e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  4.025e+00  1.614e+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:  9.804e-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:  7.413e-01  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.97
Ra Dec: 224.753 71.673
Photon Index (Free Index): 4.03 +/- 1.61
Photon Flux (Free Index): 7.45e-08 +/- 6.42e-08
Energy Flux (Free Index): 1.11e-05 +/- 9.53e-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/923309/cmap_HighResolution_239587201_239846401_4FGL_J1459.0+7140_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='4.89e-01', photon_flux2='7.45e-08', job_status='DONE', time_completed='2021-09-10 17:15:29.174351', photon_index_error2='1.61', photon_index2='4.03', ts='0.84', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='9.53e-06', EG='0.80', time_epoch_completed='1631319329.17', return_code='0', job_id='923309', GAL2='0.98', EG2='0.74', return_code2='0', photon_flux_error2='6.42e-08', ts2='1.97', photon_index='2.50' WHERE bin_id='1' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:15:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 923309: <4FGL_J1459.0+7140_daily_bin1> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin1> 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) <bullet0235>, 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:15:29 2021
Results reported at Fri Sep 10 17:15:29 2021

Your job looked like:

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

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

