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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin1294
RA = 224.753, Dec = 71.6733
tmin = 574732801, tmax = 574992001
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='929454', job_status='RUN', time_executed='2021-09-10 17:21:49.853499', time_epoch_executed='1631319709.85' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='1294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929454

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929454/ft1_4FGL_J1459.0+7140_daily_bin1294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929454/ft2_4FGL_J1459.0+7140_daily_bin1294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929454/ft1_4FGL_J1459.0+7140_daily_bin1294.fits outfile=/scratch/kocevski/929454/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1294.fits ra=224.753 dec=71.6733 rad=12.0 tmin=574732801.0 tmax=574992001.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 5.31
user 5.03
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929454/ft1_filtered_4FGL_J1459.0+7140_daily_bin1294.fits evtable="EVENTS" scfile=/scratch/kocevski/929454/ft2_4FGL_J1459.0+7140_daily_bin1294.fits sctable="SC_DATA" expcube=/scratch/kocevski/929454/ltcube_574732801_574992001_4FGL_J1459.0+7140_daily_bin1294.fits outfile=/scratch/kocevski/929454/expmap_574732801_574992001_4FGL_J1459.0+7140_daily_bin1294.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/929454/ltcube_574732801_574992001_4FGL_J1459.0+7140_daily_bin1294.fits
.....................!
real 190.07
user 185.38
sys 4.34

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/929454/ft1_filtered_4FGL_J1459.0+7140_daily_bin1294.fits scfile=/scratch/kocevski/929454/ft2_4FGL_J1459.0+7140_daily_bin1294.fits outfile=/scratch/kocevski/929454/cmap_574732801_574992001_4FGL_J1459.0+7140_daily_bin1294.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929454/ft1_filtered_4FGL_J1459.0+7140_daily_bin1294.fits scfile=/scratch/kocevski/929454/ft2_4FGL_J1459.0+7140_daily_bin1294.fits outfile=/scratch/kocevski/929454/cmap_HighResolution_574732801_574992001_4FGL_J1459.0+7140_daily_bin1294.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.475       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.638       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.637       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.531       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.227       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.8073       1.0000         .10000E-03   10000.    
    19 'Prefactor '    91.718       1.0000         .10000E-03   10000.    
    20 'norm      '    5.8502       1.0000         .10000E-03   10000.    
    21 'Prefactor '    76.189       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.3123       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2010       1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.209       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.936       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .73143       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0917       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=   7090.758     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3427 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.472        40.918       -.19392E-05   -.17429E-05
   2  Prefactor     20.634        35.001       -.10543E-05   -.36193E-05
   3  Prefactor     .10000E-03    6.6704       -.48590E-07** at limit **
   4  Prefactor     .10000E-03    1.0018       -.11629E-07** at limit **
   5  Prefactor     .10000E-03    3.7052        .14313E-07** at limit **
   6  Prefactor     .10000E-03    3.8659        .20273E-08** at limit **
   7  Prefactor     .10000E-03    3.0497        .10437E-07** at limit **
   8  Prefactor     .10000E-03    5.4673        .15714E-07** at limit **
   9  Prefactor     .10000E-03    9.8887        .23513E-06** at limit **
  10  Prefactor     .10000E-03    233.88       -.50952E-05** at limit **
  11  Prefactor     .10000E-03    28.200        .13847E-04** at limit **
  12  Prefactor     20.637        19.970       -.37657E-06   -.43914E-05
  13  Prefactor     20.189        22.518       -.22424E-05   -.10461E-04
  14  Prefactor     .10000E-03    14.254       -.33081E-05** at limit **
  15  Prefactor     14.525        40.443       -.41346E-05   -.17440E-05
  16  Prefactor     17.226        13.989        .12993E-06   -.34627E-04
  17  Prefactor     .10000E-03    15.858        .44468E-05** at limit **
  18  norm          6.8075        3.4887        .31956E-06    .61183E-04
  19  Prefactor     91.704        92.018       -.12436E-04    .58427E-06
  20  norm          5.8496        15.097        .38221E-06   -.42127E-04
  21  Prefactor     76.188        99.843       -.97079E-06    .41970E-05
  22  Prefactor     .10000E-03    26.687       -.14874E-04** at limit **
  23  norm          2.3125        .93204       -.10134E-06    .44366E-03
  24  Prefactor     1.2021        1.9040       -.69776E-06   -.92953E-03
  25  Prefactor     19.206        23.912        .24194E-05    .71524E-05
  26  Prefactor     14.932        18.578        .55682E-05    .18276E-04
  27  Normalizat    .73139        .15555        .86011E-06   -.51344E-05
  28  Prefactor     1.0917        .14668       -.40592E-07    .78679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4718
  Prefactor  = 20.6335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6367
  Prefactor  = 20.1889
  Prefactor  = 0.0001
  Prefactor  = 14.525
  Prefactor  = 17.2264
  Prefactor  = 0.0001
  norm       = 6.80754
  Prefactor  = 91.7036
  norm       = 5.84958
  Prefactor  = 76.1876
  Prefactor  = 0.0001
  norm       = 2.31247
  Prefactor  = 1.20212
  Prefactor  = 19.206
  Prefactor  = 14.9322
  Normalizat = 0.731386
  Prefactor  = 1.09167
 **********
 **   18 **HESSE 
 **********

 FCN=   7090.758     FROM HESSE     STATUS=OK           517 CALLS     3944 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.472        40.952        .79367E-04   -1.4698    
   2  Prefactor     20.634        35.012        .88166E-04   -1.4799    
   3  Prefactor     .10000E-03    6.6709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0059        .82290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.7124        .15829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9166        .16167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0659        .14357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    233.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.637        19.984        .88169E-04   -1.4799    
  13  Prefactor     20.189        22.534        .89144E-04   -1.4809    
  14  Prefactor     .10000E-03    14.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.525        40.463        .10507E-03   -1.4946    
  16  Prefactor     17.226        13.993        .96498E-04   -1.4878    
  17  Prefactor     .10000E-03    15.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.8075        3.4899        .10769E-03   -1.5186    
  19  Prefactor     91.704        91.980        .41960E-04   -1.3790    
  20  norm          5.8496        15.089        .16604E-03   -1.5224    
  21  Prefactor     76.188        99.863        .46003E-04   -1.3960    
  22  Prefactor     .10000E-03    26.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.3125        .93695        .46758E-04   -1.5404    
  24  Prefactor     1.2021        1.8667        .13822E-03   -1.5489    
  25  Prefactor     19.206        24.031        .91385E-04   -1.4831    
  26  Prefactor     14.932        18.559        .10363E-03   -1.4935    
  27  Normalizat    .73139        .17724        .26752E-03   -1.0267    
  28  Prefactor     1.0917        .16792        .21141E-03   -.89733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97547e-10
Minuit parameter uncertainties:
  1  40.9975
  2  35.0471
  3  6.4031e-08
  4  2.46193e-07
  5  2.22499e-07
  6  1.27944e-06
  7  1.59172e-06
  8  2.99057e-07
  9  1.20067e-06
  10  5.14755e-06
  11  4.89431e-06
  12  19.9906
  13  22.5435
  14  2.92966e-06
  15  40.5399
  16  13.996
  17  3.57508e-06
  18  3.48996
  19  92.1237
  20  15.0991
  21  100.083
  22  3.04737e-05
  23  0.93696
  24  1.86678
  25  24.0432
  26  18.566
  27  0.177384
  28  0.168003
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  2.019e+01  2.254e+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:  1.092e+00  1.680e-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.314e-01  1.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 224.753 71.673
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 2.12e-08 +/- 2.37e-08
Energy Flux (Fixed Index): 6.16e-06 +/- 6.88e-06

TS (Fixed Index): 1.09
Ra Dec: 224.753 71.673
Photon Flux Upper Limit: 7.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929454/likelihoodResults_574732801_574992001_4FGL_J1459.0+7140_daily_bin1294.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) = 7090.1137114
delta logL = 0.64424784761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7090.00452725
delta logL = 0.753431999255

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.650       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7182       1.0000          .0000       10.000    
     3 'Normalizat'    .74934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0768       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=   7090.005     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      237 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.665        29.279        .70126E-04   -.16406E-03
   2  Index         1.7185        .51667        .87711E-02   -.28509E-04
   3  Normalizat    .74946        .17215        .26444E-03   -.10303E-02
   4  Prefactor     1.0767        .16388        .21249E-03   -.10760E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.6646
  Index      = 1.71848
  Normalizat = 0.749459
  Prefactor  = 1.07668
 **********
 **   18 **HESSE 
 **********

 FCN=   7090.005     FROM HESSE     STATUS=OK            25 CALLS      262 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.665        29.585        .14025E-04   -1.4564    
   2  Index         1.7185        .52214        .35084E-03   -.71591    
   3  Normalizat    .74946        .17227        .52888E-04   -1.0197    
   4  Prefactor     1.0767        .16399        .42499E-04   -.90216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13656e-09
Minuit parameter uncertainties:
  1  29.598
  2  0.523819
  3  0.1724
  4  0.164072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929454': 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) = 7090.00452641
delta logL = 0.753432838421

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  3.266e+01  2.960e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  1.718e+00  5.238e-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:  1.077e+00  1.641e-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.495e-01  1.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.60
Ra Dec: 224.753 71.673
Photon Index (Free Index): 1.72 +/- 0.52
Photon Flux (Free Index): 1.46e-08 +/- 1.57e-08
Energy Flux (Free Index): 2.25e-05 +/- 3.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/929454/cmap_HighResolution_574732801_574992001_4FGL_J1459.0+7140_daily_bin1294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', comment='SUCCESS', photon_flux='2.12e-08', energy_flux2='2.25e-05', photon_flux_error='2.37e-08', dlogl='7.53e-01', energy_flux='6.16e-06', photon_flux2='1.46e-08', job_status='DONE', time_completed='2021-09-10 17:38:04.641229', photon_index_error2='0.52', photon_index2='1.72', ts='1.09', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='7.53e-08', energy_flux_error2='3.00e-05', EG='0.73', time_epoch_completed='1631320684.64', return_code='0', job_id='929454', GAL2='1.08', EG2='0.75', return_code2='0', energy_flux_error='6.88e-06', photon_flux_error2='1.57e-08', ts2='2.60', photon_index='2.50' WHERE bin_id='1294' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:38:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 929454: <4FGL_J1459.0+7140_daily_bin1294> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin1294 224.753 71.6733 574732801 574992001 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 :                                   972.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             301.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

