/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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1459.0+7140_daily_bin261
RA = 224.753, Dec = 71.6733
tmin = 306979201, tmax = 307238401
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='924748', job_status='RUN', time_executed='2021-09-10 17:06:18.607223', time_epoch_executed='1631318778.61' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924748/ft1_4FGL_J1459.0+7140_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924748/ft2_4FGL_J1459.0+7140_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924748/ft1_4FGL_J1459.0+7140_daily_bin261.fits outfile=/scratch/kocevski/924748/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin261.fits ra=224.753 dec=71.6733 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.08
user 13.65
sys 0.39

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924748/ft1_filtered_4FGL_J1459.0+7140_daily_bin261.fits" evtable="EVENTS" scfile=/scratch/kocevski/924748/ft2_4FGL_J1459.0+7140_daily_bin261.fits sctable="SC_DATA" outfile=/scratch/kocevski/924748/ltcube_306979201_307238401_4FGL_J1459.0+7140_daily_bin261.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/924748/ft2_4FGL_J1459.0+7140_daily_bin261.fits
.....................!
real 11.14
user 10.64
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924748/ft1_filtered_4FGL_J1459.0+7140_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/924748/ft2_4FGL_J1459.0+7140_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/924748/ltcube_306979201_307238401_4FGL_J1459.0+7140_daily_bin261.fits outfile=/scratch/kocevski/924748/expmap_306979201_307238401_4FGL_J1459.0+7140_daily_bin261.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/924748/ltcube_306979201_307238401_4FGL_J1459.0+7140_daily_bin261.fits
.....................!
real 189.65
user 184.04
sys 5.27

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/924748/ft1_filtered_4FGL_J1459.0+7140_daily_bin261.fits scfile=/scratch/kocevski/924748/ft2_4FGL_J1459.0+7140_daily_bin261.fits outfile=/scratch/kocevski/924748/cmap_306979201_307238401_4FGL_J1459.0+7140_daily_bin261.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.54
user 0.36
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.838       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3502       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .88346       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.356       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .37970E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8471       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    116.43       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21517E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29541E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.507       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10943E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6711       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.248       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.753       1.0000         .10000E-03   10000.    
    23 'norm      '    .15426       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.0222       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0257       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .85314       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=   5863.068     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     4040 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.852        66.117       -.59365E-07    .91772E-04
   2  Prefactor     7.3458        58.655        .30738E-06   -.52119E-05
   3  Prefactor     .10000E-03    16.581       -.12442E-06** at limit **
   4  Prefactor     .89013        6.9105        .52845E-05    .78604E-03
   5  Prefactor     12.362        22.155       -.16052E-05    .11651E-03
   6  Prefactor     .13941E-03    8.8817       -.40464E-05** at limit **
   7  Prefactor     6.8462        10.133        .38735E-05   -.33031E-03
   8  Prefactor     .10000E-03    7.0908       -.60227E-07** at limit **
   9  Prefactor     .10000E-03    12.618        .17183E-06** at limit **
  10  Prefactor     116.39        376.27       -.13692E-05   -.12138E-04
  11  Prefactor     .10006E-03    342.16        .69582E-05** at limit **
  12  Prefactor     .10000E-03    8.7749        .28644E-07** at limit **
  13  Prefactor     .10000E-03    17.147       -.94620E-07** at limit **
  14  Prefactor     .10000E-03    12.926       -.39398E-06** at limit **
  15  Prefactor     .10004E-03    160.51        .52546E-05** at limit **
  16  Prefactor     32.504        19.303        .33670E-06    .10352E-05
  17  Prefactor     .10000E-03    44.754        .11665E-05** at limit **
  18  norm          1.6711        2.0792        .43533E-07    .52758E-05
  19  Prefactor     .10002E-03    54.806       -.25334E-05** at limit **
  20  norm          12.248        12.899        .16409E-07   -.96891E-05
  21  Prefactor     .10001E-03    67.149        .17263E-05** at limit **
  22  Prefactor     21.750        38.700       -.79240E-06   -.47963E-04
  23  norm          .15427        .53664        .58261E-06   -.15123E-03
  24  Prefactor     2.0223        2.8181        .37472E-06   -.99960E-04
  25  Prefactor     .10000E-03    14.828        .37447E-07** at limit **
  26  Prefactor     .10000E-03    12.647        .59557E-07** at limit **
  27  Normalizat    1.0257        .17519       -.13905E-05    .21177E-03
  28  Prefactor     .85318        .15211        .12691E-06    .59558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.8518
  Prefactor  = 7.34579
  Prefactor  = 0.0001
  Prefactor  = 0.890125
  Prefactor  = 12.3619
  Prefactor  = 0.000139413
  Prefactor  = 6.84618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 116.387
  Prefactor  = 0.000100061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 32.5037
  Prefactor  = 0.000100003
  norm       = 1.67107
  Prefactor  = 0.000100016
  norm       = 12.2479
  Prefactor  = 0.000100007
  Prefactor  = 21.7504
  norm       = 0.154275
  Prefactor  = 2.02233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02572
  Prefactor  = 0.853181
 **********
 **   18 **HESSE 
 **********

 FCN=   5863.068     FROM HESSE     STATUS=OK           525 CALLS     4565 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.852        65.992        .58587E-04   -1.4338    
   2  Prefactor     7.3458        58.617        .14794E-03   -1.5166    
   3  Prefactor     .10000E-03    16.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .89013        8.5171        .34793E-02   -1.5519    
   5  Prefactor     12.362        22.072        .11396E-03   -1.5005    
   6  Prefactor     .13941E-03    14.180        .60601E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8462        9.9114        .76665E-03   -1.5185    
   8  Prefactor     .10000E-03    7.1036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     116.39        376.54        .18644E-03   -1.3546    
  11  Prefactor     .10006E-03    350.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.7903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10004E-03    163.87        .21396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.504        19.357        .70280E-04   -1.4567    
  17  Prefactor     .10000E-03    45.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6711        2.0679        .11978E-03   -1.5449    
  19  Prefactor     .10002E-03    55.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.248        12.895        .11446E-03   -1.5008    
  21  Prefactor     .10001E-03    67.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.750        37.997        .85879E-04   -1.4775    
  23  norm          .15427        .51803        .96502E-04   -1.5629    
  24  Prefactor     2.0223        2.7977        .14318E-03   -1.5424    
  25  Prefactor     .10000E-03    14.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0257        .20470        .22867E-03   -.92174    
  28  Prefactor     .85318        .17782        .22812E-03   -.97797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69312e-09
Minuit parameter uncertainties:
  1  66.0952
  2  41.5571
  3  1.21132e-05
  4  5.50754
  5  22.0861
  6  0.0472929
  7  9.91373
  8  1.03006e-05
  9  7.04441e-05
  10  384.743
  11  0.00930837
  12  2.57731e-06
  13  4.42618e-05
  14  0.000150101
  15  0.0052274
  16  19.3608
  17  0.000682842
  18  2.06797
  19  0.00188721
  20  12.8983
  21  0.0014056
  22  38.0393
  23  0.518042
  24  2.79788
  25  4.97988e-05
  26  2.65211e-05
  27  0.204854
  28  0.177943
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  8.532e-01  1.779e-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.026e+00  2.049e-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: 5.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/924748/likelihoodResults_306979201_307238401_4FGL_J1459.0+7140_daily_bin261.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) = 5863.06792152
delta logL = -0.000276494160971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5863.06764681
delta logL = -1.79398921318e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8177       1.0000          .0000       10.000    
     3 'Normalizat'    1.0257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85318       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=   5863.068     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      274 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10650E-03    9.6436        .18142E-01** at limit **
   2  Index         2.6967        5.0793        .50000        .28917E-04
   3  Normalizat    1.0257        .35910E-02    .22867E-03   -.52699E-05
   4  Prefactor     .85318        .33143E-02    .22812E-03   -.15549E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106499
  Index      = 2.69667
  Normalizat = 1.02571
  Prefactor  = 0.853183
 **********
 **   18 **HESSE 
 **********

 FCN=   5863.068     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10650E-03    68.383        .26688E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6967        7.8724        .50000       -.47875    
   3  Normalizat    1.0257        .95025E-02    .91469E-05   -.92174    
   4  Prefactor     .85318        .87701E-02    .91249E-05   -.97797    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.55227e-09
Minuit parameter uncertainties:
  1  0.0422122
  2  245.462
  3  0.00950247
  4  0.00877015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924748': 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) = 5863.0676462
delta logL = -1.18167008623e-06

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.065e-04  4.221e-02  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.697e+00  2.455e+02  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.532e-01  8.770e-03  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.026e+00  9.502e-03  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/924748/cmap_HighResolution_306979201_307238401_4FGL_J1459.0+7140_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2021-09-10 17:22:37.254962', job_id='924748', GAL2='0.85', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1631319757.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='261' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:22:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 924748: <4FGL_J1459.0+7140_daily_bin261> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin261 224.753 71.6733 306979201 307238401 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 :                                   973.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   998 sec.
    Turnaround time :                            994 sec.

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

