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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin1115
RA = 224.753, Dec = 71.6733
tmin = 528336001, tmax = 528595201
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='929192', job_status='RUN', time_executed='2021-09-10 17:21:31.210842', time_epoch_executed='1631319691.21' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='1115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929192

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929192/ft1_4FGL_J1459.0+7140_daily_bin1115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929192/ft2_4FGL_J1459.0+7140_daily_bin1115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929192/ft1_4FGL_J1459.0+7140_daily_bin1115.fits outfile=/scratch/kocevski/929192/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin1115.fits ra=224.753 dec=71.6733 rad=12.0 tmin=528336001.0 tmax=528595201.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.43
user 3.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929192/ft1_filtered_4FGL_J1459.0+7140_daily_bin1115.fits" evtable="EVENTS" scfile=/scratch/kocevski/929192/ft2_4FGL_J1459.0+7140_daily_bin1115.fits sctable="SC_DATA" outfile=/scratch/kocevski/929192/ltcube_528336001_528595201_4FGL_J1459.0+7140_daily_bin1115.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/929192/ft2_4FGL_J1459.0+7140_daily_bin1115.fits
.....................!
real 11.99
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929192/ft1_filtered_4FGL_J1459.0+7140_daily_bin1115.fits evtable="EVENTS" scfile=/scratch/kocevski/929192/ft2_4FGL_J1459.0+7140_daily_bin1115.fits sctable="SC_DATA" expcube=/scratch/kocevski/929192/ltcube_528336001_528595201_4FGL_J1459.0+7140_daily_bin1115.fits outfile=/scratch/kocevski/929192/expmap_528336001_528595201_4FGL_J1459.0+7140_daily_bin1115.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/929192/ltcube_528336001_528595201_4FGL_J1459.0+7140_daily_bin1115.fits
.....................!
real 189.38
user 184.43
sys 4.42

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/929192/ft1_filtered_4FGL_J1459.0+7140_daily_bin1115.fits scfile=/scratch/kocevski/929192/ft2_4FGL_J1459.0+7140_daily_bin1115.fits outfile=/scratch/kocevski/929192/cmap_528336001_528595201_4FGL_J1459.0+7140_daily_bin1115.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929192/ft1_filtered_4FGL_J1459.0+7140_daily_bin1115.fits scfile=/scratch/kocevski/929192/ft2_4FGL_J1459.0+7140_daily_bin1115.fits outfile=/scratch/kocevski/929192/cmap_HighResolution_528336001_528595201_4FGL_J1459.0+7140_daily_bin1115.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.34
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.072       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6705       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .52262       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.599       1.0000         .10000E-03   10000.    
    10 'Prefactor '    121.86       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9625       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16653E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4917       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.2112       1.0000         .10000E-03   10000.    
    19 'Prefactor '    77.222       1.0000         .10000E-03   10000.    
    20 'norm      '    15.215       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.3755       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6013       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91061       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .78130       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=   6157.936     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3944 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.070        23.502       -.20567E-07    .13367E-04
   2  Prefactor     .10000E-03    22.567        .17933E-04** at limit **
   3  Prefactor     8.6690        17.883        .57233E-07    .15048E-04
   4  Prefactor     .10000E-03    1.4925        .46440E-07** at limit **
   5  Prefactor     .53709        8.2686       -.18490E-05    .18816E-04
   6  Prefactor     .10000E-03    4.9353       -.38938E-07** at limit **
   7  Prefactor     .10000E-03    8.8886        .30340E-05** at limit **
   8  Prefactor     .10000E-03    7.8405        .17440E-05** at limit **
   9  Prefactor     21.604        30.889        .23076E-05    .13254E-04
  10  Prefactor     121.92        531.89        .57450E-04   -.21126E-06
  11  Prefactor     .10000E-03    69.745        .97320E-05** at limit **
  12  Prefactor     .10000E-03    5.6793       -.17481E-06** at limit **
  13  Prefactor     8.9622        16.426       -.17223E-05   -.63278E-03
  14  Prefactor     .10000E-03    106.23       -.17351E-04** at limit **
  15  Prefactor     6.4892        57.552       -.31855E-05   -.48996E-05
  16  Prefactor     .10000E-03    5.3278        .63180E-07** at limit **
  17  Prefactor     .10000E-03    8.5229       -.45477E-05** at limit **
  18  norm          7.2113        3.5117       -.44677E-06   -.10596E-04
  19  Prefactor     77.236        85.057        .13267E-04    .21726E-05
  20  norm          15.212        20.214        .28775E-06    .36908E-05
  21  Prefactor     .10000E-03    68.149        .54112E-05** at limit **
  22  Prefactor     .10000E-03    11.050        .54552E-06** at limit **
  23  norm          1.3754        .86261        .54103E-07    .75923E-03
  24  Prefactor     6.6012        3.3034        .57510E-07    .50669E-04
  25  Prefactor     .10000E-03    26.216       -.17024E-04** at limit **
  26  Prefactor     .10000E-03    16.889       -.47813E-05** at limit **
  27  Normalizat    .91046        .14967       -.83550E-06    .19907E-03
  28  Prefactor     .78146        .13708        .91912E-07    .70105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0701
  Prefactor  = 0.0001
  Prefactor  = 8.66897
  Prefactor  = 0.0001
  Prefactor  = 0.537091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6043
  Prefactor  = 121.92
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.96217
  Prefactor  = 0.0001
  Prefactor  = 6.48919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.21127
  Prefactor  = 77.2355
  norm       = 15.212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37544
  Prefactor  = 6.60122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.91046
  Prefactor  = 0.781463
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.936     FROM HESSE     STATUS=OK           515 CALLS     4459 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.070        23.500        .94214E-04   -1.4858    
   2  Prefactor     .10000E-03    22.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.6690        17.931        .13613E-03   -1.5119    
   4  Prefactor     .10000E-03    1.5043        .93553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .53709        34.224        .42607E-02   -1.5561    
   6  Prefactor     .10000E-03    4.9876        .17017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.604        30.900        .86185E-04   -1.4778    
  10  Prefactor     121.92        529.90        .18229E-03   -1.3495    
  11  Prefactor     .10000E-03    69.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.9622        16.654        .66941E-03   -1.5109    
  14  Prefactor     .10000E-03    106.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.4892        57.574        .15752E-03   -1.5198    
  16  Prefactor     .10000E-03    5.3552        .17689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.5206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.2113        3.5126        .96615E-04   -1.5171    
  19  Prefactor     77.236        84.981        .45697E-04   -1.3948    
  20  norm          15.212        20.223        .10268E-03   -1.4928    
  21  Prefactor     .10000E-03    68.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.3754        .84958        .55280E-04   -1.5473    
  24  Prefactor     6.6012        3.2991        .94459E-04   -1.5194    
  25  Prefactor     .10000E-03    26.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .91046        .17426        .22052E-03   -.96094    
  28  Prefactor     .78146        .16046        .21960E-03   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46464e-09
Minuit parameter uncertainties:
  1  23.5123
  2  2.11048e-06
  3  17.9416
  4  1.38896e-06
  5  8.57907
  6  2.77034e-06
  7  1.91247e-05
  8  4.13542e-06
  9  30.9229
  10  516.266
  11  2.16318e-05
  12  1.04389e-07
  13  16.6621
  14  0.000310587
  15  38.7075
  16  3.01981e-06
  17  2.66278e-06
  18  3.51267
  19  85.1146
  20  20.2319
  21  6.55999e-06
  22  1.59542e-06
  23  0.849585
  24  3.29917
  25  6.5083e-05
  26  9.51513e-06
  27  0.174365
  28  0.160551
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  8.962e+00  1.666e+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:  7.815e-01  1.606e-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:  9.105e-01  1.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/929192/likelihoodResults_528336001_528595201_4FGL_J1459.0+7140_daily_bin1115.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) = 6157.76897727
delta logL = 0.166989326902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6157.75468915
delta logL = 0.181277442092

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.624       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9150       1.0000          .0000       10.000    
     3 'Normalizat'    .91522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77718       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=   6157.755     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      272 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.623        21.607        .10474E-03    .74883E-03
   2  Index         1.9152        .83326        .13061E-01    .25685E-03
   3  Normalizat    .91527        .16980        .21997E-03   -.12833E-03
   4  Prefactor     .77716        .15857        .22008E-03   -.12532E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6225
  Index      = 1.91524
  Normalizat = 0.915266
  Prefactor  = 0.77716
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.755     FROM HESSE     STATUS=OK            23 CALLS      295 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.623        21.616        .20947E-04   -1.4943    
   2  Index         1.9152        .83394        .52244E-03   -.66486    
   3  Normalizat    .91527        .16996        .87987E-05   -.95926    
   4  Prefactor     .77716        .15872        .88034E-05   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04461e-09
Minuit parameter uncertainties:
  1  21.6271
  2  0.840309
  3  0.170058
  4  0.158809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929192': 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) = 6157.75468906
delta logL = 0.181277531028

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.462e+01  2.163e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  1.915e+00  8.403e-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:  7.772e-01  1.588e-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:  9.153e-01  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
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/929192/cmap_HighResolution_528336001_528595201_4FGL_J1459.0+7140_daily_bin1115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.61e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-10 17:37:16.938192', job_id='929192', GAL2='0.78', fit_tolerance='1e-08', EG2='0.92', EG='0.91', time_epoch_completed='1631320636.94', return_code2='0', ts='0.40', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.81e-01', ts2='0.76', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='1115' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:37:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 929192: <4FGL_J1459.0+7140_daily_bin1115> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin1115 224.753 71.6733 528336001 528595201 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 :                                   943.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             331.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

