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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin481
RA = 224.753, Dec = 71.6733
tmin = 364003201, tmax = 364262401
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='925072', job_status='RUN', time_executed='2021-09-10 17:06:42.508152', time_epoch_executed='1631318802.51' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925072

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925072/ft1_4FGL_J1459.0+7140_daily_bin481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925072/ft2_4FGL_J1459.0+7140_daily_bin481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925072/ft1_4FGL_J1459.0+7140_daily_bin481.fits outfile=/scratch/kocevski/925072/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin481.fits ra=224.753 dec=71.6733 rad=12.0 tmin=364003201.0 tmax=364262401.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 3.21
user 2.98
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/925072/ft2_4FGL_J1459.0+7140_daily_bin481.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/925072/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin481.fits evtable="EVENTS" outfile="/scratch/kocevski/925072/ft1_filtered_4FGL_J1459.0+7140_daily_bin481.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925072/ft1_filtered_4FGL_J1459.0+7140_daily_bin481.fits" evtable="EVENTS" scfile=/scratch/kocevski/925072/ft2_4FGL_J1459.0+7140_daily_bin481.fits sctable="SC_DATA" outfile=/scratch/kocevski/925072/ltcube_364003201_364262401_4FGL_J1459.0+7140_daily_bin481.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/925072/ft2_4FGL_J1459.0+7140_daily_bin481.fits
.....................!
real 11.83
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925072/ft1_filtered_4FGL_J1459.0+7140_daily_bin481.fits evtable="EVENTS" scfile=/scratch/kocevski/925072/ft2_4FGL_J1459.0+7140_daily_bin481.fits sctable="SC_DATA" expcube=/scratch/kocevski/925072/ltcube_364003201_364262401_4FGL_J1459.0+7140_daily_bin481.fits outfile=/scratch/kocevski/925072/expmap_364003201_364262401_4FGL_J1459.0+7140_daily_bin481.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/925072/ltcube_364003201_364262401_4FGL_J1459.0+7140_daily_bin481.fits
.....................!
real 190.50
user 184.78
sys 5.33

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/925072/ft1_filtered_4FGL_J1459.0+7140_daily_bin481.fits scfile=/scratch/kocevski/925072/ft2_4FGL_J1459.0+7140_daily_bin481.fits outfile=/scratch/kocevski/925072/cmap_364003201_364262401_4FGL_J1459.0+7140_daily_bin481.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925072/ft1_filtered_4FGL_J1459.0+7140_daily_bin481.fits scfile=/scratch/kocevski/925072/ft2_4FGL_J1459.0+7140_daily_bin481.fits outfile=/scratch/kocevski/925072/cmap_HighResolution_364003201_364262401_4FGL_J1459.0+7140_daily_bin481.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.629       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1497       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.153       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12374E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6241       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .95536       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3218       1.0000         .10000E-03   10000.    
    19 'Prefactor '    118.58       1.0000         .10000E-03   10000.    
    20 'norm      '    5.2287       1.0000         .10000E-03   10000.    
    21 'Prefactor '    77.371       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.6448       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15911E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    37.475       1.0000         .10000E-03   10000.    
    26 'Prefactor '    33.924       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .79961       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .95726       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=   6558.615     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3534 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.569       -.16738E-05** at limit **
   2  Prefactor     .10000E-03    146.02        .27055E-05** at limit **
   3  Prefactor     17.630        18.502        .37317E-06    .15303E-04
   4  Prefactor     2.1494        3.8621       -.15610E-05   -.83003E-03
   5  Prefactor     .10000E-03    8.1274        .39494E-06** at limit **
   6  Prefactor     .10000E-03    6.2796        .21178E-06** at limit **
   7  Prefactor     .10000E-03    6.4203       -.75325E-06** at limit **
   8  Prefactor     24.155        18.262       -.52170E-05    .14937E-04
   9  Prefactor     .10000E-03    22.150        .13515E-04** at limit **
  10  Prefactor     .10000E-03    463.91       -.75959E-05** at limit **
  11  Prefactor     5.6191        85.633       -.14198E-05   -.50587E-05
  12  Prefactor     .10000E-03    4.2522       -.13173E-06** at limit **
  13  Prefactor     .10000E-03    11.408       -.37804E-06** at limit **
  14  Prefactor     .10000E-03    23.489       -.44342E-06** at limit **
  15  Prefactor     .10000E-03    23.861       -.96763E-05** at limit **
  16  Prefactor     .95800        9.3415        .11800E-05   -.10759E-03
  17  Prefactor     .10000E-03    17.426       -.17359E-04** at limit **
  18  norm          4.3234        3.8400        .51523E-05   -.95718E-04
  19  Prefactor     118.47        124.83       -.77649E-04   -.83857E-05
  20  norm          5.2303        11.108        .18462E-07   -.54438E-04
  21  Prefactor     77.383        107.41        .97526E-05    .51424E-05
  22  Prefactor     .10000E-03    16.692        .12999E-04** at limit **
  23  norm          1.6447        .94604       -.16284E-06   -.70773E-03
  24  Prefactor     .10000E-03    1.7189       -.30871E-06** at limit **
  25  Prefactor     37.477        25.408        .63778E-06   -.26922E-04
  26  Prefactor     33.979        30.698       -.87173E-06    .15221E-03
  27  Normalizat    .79942        .15531        .67554E-05   -.23121E-03
  28  Prefactor     .95746        .13935       -.14575E-05    .34880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.63
  Prefactor  = 2.14944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.1546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.61909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.958004
  Prefactor  = 0.0001
  norm       = 4.32335
  Prefactor  = 118.47
  norm       = 5.23029
  Prefactor  = 77.3835
  Prefactor  = 0.0001
  norm       = 1.64472
  Prefactor  = 0.000100001
  Prefactor  = 37.4767
  Prefactor  = 33.9786
  Normalizat = 0.799425
  Prefactor  = 0.957456
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.615     FROM HESSE     STATUS=OK           517 CALLS     4051 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    147.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.630        18.504        .95390E-04   -1.4868    
   4  Prefactor     2.1494        3.8542        .20112E-03   -1.5415    
   5  Prefactor     .10000E-03    8.1578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.3002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.5474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.155        18.260        .81506E-04   -1.4725    
   9  Prefactor     .10000E-03    22.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    463.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.6191        85.626        .16939E-03   -1.5234    
  12  Prefactor     .10000E-03    4.2529        .16310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .95800        29.770        .46740E-02   -1.5512    
  17  Prefactor     .10000E-03    17.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3234        3.8244        .13057E-03   -1.5292    
  19  Prefactor     118.47        124.55        .18477E-03   -1.3527    
  20  norm          5.2303        11.082        .17579E-03   -1.5251    
  21  Prefactor     77.383        107.41        .45653E-04   -1.3946    
  22  Prefactor     .10000E-03    16.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.6447        .94107        .52999E-04   -1.5451    
  24  Prefactor     .10000E-03    4.5144        .17808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     37.477        25.449        .65470E-04   -1.4483    
  26  Prefactor     33.979        26.897        .68800E-04   -1.4541    
  27  Normalizat    .79942        .17854        .24617E-03   -1.0009    
  28  Prefactor     .95746        .16229        .21169E-03   -.94161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63103e-08
Minuit parameter uncertainties:
  1  2.5963e-05
  2  8.99135e-05
  3  18.5102
  4  3.85465
  5  3.72187e-05
  6  2.68952e-06
  7  3.18539e-05
  8  18.2647
  9  4.66394e-05
  10  0.000168078
  11  43.9447
  12  2.87777e-07
  13  2.99721e-05
  14  4.02037e-05
  15  3.02222e-05
  16  10.686
  17  6.58323e-05
  18  3.82465
  19  124.824
  20  11.0862
  21  107.682
  22  1.08999e-05
  23  0.941074
  24  0.000112479
  25  25.4565
  26  26.9067
  27  0.178668
  28  0.162369
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  2.997e-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:  9.575e-01  1.624e-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.994e-01  1.787e-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: 4.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925072/likelihoodResults_364003201_364262401_4FGL_J1459.0+7140_daily_bin481.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) = 6558.61500701
delta logL = -0.000416671009589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6558.61459031
delta logL = 3.45307853422e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4850       1.0000          .0000       10.000    
     3 'Normalizat'    .79943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95745       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=   6558.615     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      237 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10167E-03    226.07        .18142E-02** at limit **
   2  Index         2.3999        6.8898        .50000        .78487E-05
   3  Normalizat    .79943        .16623E-01    .24617E-03    .54449E-04
   4  Prefactor     .95745        .15609E-01    .21169E-03    .53436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101672
  Index      = 2.39989
  Normalizat = 0.79943
  Prefactor  = 0.957451
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.615     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10167E-03    880.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3999        8.1789        .50000       -.54688    
   3  Normalizat    .79943        .35720E-01    .98467E-05   -1.0009    
   4  Prefactor     .95745        .33541E-01    .84676E-05   -.94162    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.34332e-08
Minuit parameter uncertainties:
  1  0.0779055
  2  1684.57
  3  0.0357211
  4  0.0335416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925072': 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): 102
logL (Free Index) = 6558.61459019
delta logL = 1.45676494867e-07

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.017e-04  7.791e-02  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.400e+00  1.685e+03  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.575e-01  3.354e-02  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.994e-01  3.572e-02  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/925072/cmap_HighResolution_364003201_364262401_4FGL_J1459.0+7140_daily_bin481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-03', job_status='DONE', photon_flux_upper_limit='4.58e-08', time_completed='2021-09-10 17:22:32.473934', job_id='925072', GAL2='0.96', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1631319752.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='481' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:22:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 925072: <4FGL_J1459.0+7140_daily_bin481> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin481> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 17:06:28 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:06:29 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:06:29 2021
Terminated at Fri Sep 10 17:22:33 2021
Results reported at Fri Sep 10 17:22:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin481 224.753 71.6733 364003201 364262401 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 :                                   948.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             339.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

