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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin72
RA = 224.753, Dec = 71.6733
tmin = 257990401, tmax = 258249601
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='923413', job_status='RUN', time_executed='2021-09-10 17:03:35.914657', time_epoch_executed='1631318615.91' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/923413

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/923413/ft1_4FGL_J1459.0+7140_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/923413/ft2_4FGL_J1459.0+7140_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/923413/ft1_4FGL_J1459.0+7140_daily_bin72.fits outfile=/scratch/kocevski/923413/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin72.fits ra=224.753 dec=71.6733 rad=12.0 tmin=257990401.0 tmax=258249601.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.41
user 1.21
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/923413/ft1_filtered_4FGL_J1459.0+7140_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/923413/ft2_4FGL_J1459.0+7140_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/923413/ltcube_257990401_258249601_4FGL_J1459.0+7140_daily_bin72.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/923413/ft2_4FGL_J1459.0+7140_daily_bin72.fits
.....................!
real 12.38
user 12.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/923413/ft1_filtered_4FGL_J1459.0+7140_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/923413/ft2_4FGL_J1459.0+7140_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/923413/ltcube_257990401_258249601_4FGL_J1459.0+7140_daily_bin72.fits outfile=/scratch/kocevski/923413/expmap_257990401_258249601_4FGL_J1459.0+7140_daily_bin72.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/923413/ltcube_257990401_258249601_4FGL_J1459.0+7140_daily_bin72.fits
.....................!
real 190.80
user 185.52
sys 4.94

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/923413/ft1_filtered_4FGL_J1459.0+7140_daily_bin72.fits scfile=/scratch/kocevski/923413/ft2_4FGL_J1459.0+7140_daily_bin72.fits outfile=/scratch/kocevski/923413/cmap_257990401_258249601_4FGL_J1459.0+7140_daily_bin72.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.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/923413/ft1_filtered_4FGL_J1459.0+7140_daily_bin72.fits scfile=/scratch/kocevski/923413/ft2_4FGL_J1459.0+7140_daily_bin72.fits outfile=/scratch/kocevski/923413/cmap_HighResolution_257990401_258249601_4FGL_J1459.0+7140_daily_bin72.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=224.753 yref=71.6733 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15387E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4067       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.883       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.340       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.349       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.901       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.477       1.0000         .10000E-03   10000.    
    18 'norm      '    11.395       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9155       1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.301       1.0000         .10000E-03   10000.    
    23 'norm      '    .34119E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .24262E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3511       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .57041       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=   5205.972     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3524 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.339        .19608E-06** at limit **
   2  Prefactor     .10000E-03    15.684       -.41388E-06** at limit **
   3  Prefactor     .10000E-03    121.48        .40702E-05** at limit **
   4  Prefactor     .10000E-03    5.5088        .59014E-06** at limit **
   5  Prefactor     .10000E-03    45.452       -.36996E-05** at limit **
   6  Prefactor     5.4020        10.393       -.20502E-05    .40479E-04
   7  Prefactor     .10000E-03    4.1601       -.19364E-06** at limit **
   8  Prefactor     11.884        19.010       -.41474E-06    .19085E-04
   9  Prefactor     25.345        28.966        .16238E-05    .40335E-04
  10  Prefactor     29.480        6017.8        .28401E-04    .20619E-06
  11  Prefactor     .10000E-03    23.656        .44903E-06** at limit **
  12  Prefactor     .10000E-03    7.0261       -.39810E-07** at limit **
  13  Prefactor     57.109        39.930       -.10446E-06    .36087E-04
  14  Prefactor     .10000E-03    14.726        .58064E-06** at limit **
  15  Prefactor     30.894        50.137       -.11906E-05    .13101E-04
  16  Prefactor     .10000E-03    18.262       -.82016E-06** at limit **
  17  Prefactor     29.471        27.927        .13741E-06    .20552E-04
  18  norm          11.396        4.8132        .13295E-06    .14324E-03
  19  Prefactor     .10000E-03    156.63       -.60693E-05** at limit **
  20  norm          .10000E-03    26.325       -.16486E-05** at limit **
  21  Prefactor     3.9968        6292.7        .41394E-04    .41706E-05
  22  Prefactor     39.270        61.816       -.91515E-05    .46385E-04
  23  norm          .34250E-01    1.0875        .13152E-05    .26709E-02
  24  Prefactor     .10000E-03    3.5170       -.14162E-05** at limit **
  25  Prefactor     .10063E-03    199.60       -.24281E-04** at limit **
  26  Prefactor     .10000E-03    22.346       -.68667E-07** at limit **
  27  Normalizat    1.3510        .18587        .15251E-05    .28174E-03
  28  Prefactor     .57037        .15889       -.81113E-07    .30446E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.402
  Prefactor  = 0.0001
  Prefactor  = 11.8837
  Prefactor  = 25.3455
  Prefactor  = 29.4796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.1086
  Prefactor  = 0.0001
  Prefactor  = 30.8938
  Prefactor  = 0.0001
  Prefactor  = 29.4709
  norm       = 11.3955
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.99678
  Prefactor  = 39.2705
  norm       = 0.0342498
  Prefactor  = 0.0001
  Prefactor  = 0.000100633
  Prefactor  = 0.0001
  Normalizat = 1.35104
  Prefactor  = 0.570373
 **********
 **   18 **HESSE 
 **********

 FCN=   5205.972     FROM HESSE     STATUS=OK           521 CALLS     4045 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    122.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.674        .31085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4020        10.800        .86411E-03   -1.5243    
   7  Prefactor     .10000E-03    4.1865        .14372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.884        19.022        .11621E-03   -1.5018    
   9  Prefactor     25.345        28.937        .79579E-04   -1.4701    
  10  Prefactor     29.480        6010.2        .73955E-04   -1.4622    
  11  Prefactor     .10000E-03    23.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.0273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     57.109        40.097        .53085E-04   -1.4195    
  14  Prefactor     .10000E-03    14.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.894        50.129        .72078E-04   -1.4596    
  16  Prefactor     .10000E-03    18.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.471        27.929        .73794E-04   -1.4622    
  18  norm          11.396        4.8174        .99913E-04   -1.5033    
  19  Prefactor     .10000E-03    156.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    26.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9968        6257.6        .20389E-03   -1.5308    
  22  Prefactor     39.270        63.233        .63936E-04   -1.4454    
  23  norm          .34250E-01    3.9526        .92689E-03   -1.5671    
  24  Prefactor     .10000E-03    3.6847        .26465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10063E-03    23.030        .96300E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3510        .21673        .21330E-03   -.82055    
  28  Prefactor     .57037        .18506        .26756E-03   -1.0885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14524e-08
Minuit parameter uncertainties:
  1  1.29687e-05
  2  2.21431e-06
  3  0.000947601
  4  0.00018016
  5  0.000239437
  6  10.8037
  7  1.05046e-05
  8  19.0319
  9  28.9526
  10  568.353
  11  1.64478e-05
  12  3.93247e-06
  13  40.1163
  14  1.8918e-05
  15  50.1976
  16  3.46107e-05
  17  27.9409
  18  4.81756
  19  0.000105644
  20  7.75884e-05
  21  218.187
  22  63.3413
  23  0.734844
  24  4.17257e-05
  25  0.00763641
  26  6.37054e-05
  27  0.21688
  28  0.185256
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  5.711e+01  4.012e+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:  5.704e-01  1.853e-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.351e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.30
Ra Dec: 224.753 71.673
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 6.00e-08 +/- 4.21e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/923413/likelihoodResults_257990401_258249601_4FGL_J1459.0+7140_daily_bin72.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) = 5205.8822485
delta logL = 0.0900785090689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5205.8784706
delta logL = 0.0938564060734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.828       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8071       1.0000          .0000       10.000    
     3 'Normalizat'    1.3303       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58218       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=   5205.878     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      286 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.835        45.799        .58594E-04   -.12841E-03
   2  Index         2.8072        .78080        .59846E-02   -.75409E-04
   3  Normalizat    1.3302        .21813        .21467E-03    .60722E-03
   4  Prefactor     .58219        .18089        .26506E-03    .55065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.835
  Index      = 2.8072
  Normalizat = 1.33015
  Prefactor  = 0.582189
 **********
 **   18 **HESSE 
 **********

 FCN=   5205.878     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.835        43.036        .11719E-04   -1.4338    
   2  Index         2.8072        .73288        .23938E-03   -.45400    
   3  Normalizat    1.3302        .21791        .42934E-04   -.82671    
   4  Prefactor     .58219        .18077        .53012E-04   -1.0834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.31415e-10
Minuit parameter uncertainties:
  1  43.0647
  2  0.73617
  3  0.218057
  4  0.180954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/923413': 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) = 5205.87846969
delta logL = 0.0938573159638

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  5.822e-01  1.810e-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.330e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 224.753 71.673
Photon Index (Free Index): 2.81 +/- 0.74
Photon Flux (Free Index): 7.62e-08 +/- 6.02e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.12e-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/923413/cmap_HighResolution_257990401_258249601_4FGL_J1459.0+7140_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', photon_flux='6.00e-08', energy_flux2='1.70e-05', photon_flux_error='4.21e-08', dlogl='9.39e-02', energy_flux='1.74e-05', photon_flux2='7.62e-08', job_status='DONE', time_completed='2021-09-10 17:17:01.805397', photon_index_error2='0.74', photon_index2='2.81', ts='3.30', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.12e-05', EG='1.35', time_epoch_completed='1631319421.81', return_code='0', job_id='923413', GAL2='0.58', EG2='1.33', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='6.02e-08', ts2='3.51', photon_index='2.50' WHERE bin_id='72' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:17:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 923413: <4FGL_J1459.0+7140_daily_bin72> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin72 224.753 71.6733 257990401 258249601 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 :                                   806.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             331.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            943 sec.

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

