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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin3
RA = 224.753, Dec = 71.6733
tmin = 240105601, tmax = 240364801
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='923311', job_status='RUN', time_executed='2021-09-10 17:01:30.494776', time_epoch_executed='1631318490.49' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/923311

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/923311/ft1_4FGL_J1459.0+7140_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/923311/ft2_4FGL_J1459.0+7140_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/923311/ft1_4FGL_J1459.0+7140_daily_bin3.fits outfile=/scratch/kocevski/923311/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin3.fits ra=224.753 dec=71.6733 rad=12.0 tmin=240105601.0 tmax=240364801.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.43
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/923311/ft2_4FGL_J1459.0+7140_daily_bin3.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/923311/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin3.fits evtable="EVENTS" outfile="/scratch/kocevski/923311/ft1_filtered_4FGL_J1459.0+7140_daily_bin3.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/923311/ft1_filtered_4FGL_J1459.0+7140_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/923311/ft2_4FGL_J1459.0+7140_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/923311/ltcube_240105601_240364801_4FGL_J1459.0+7140_daily_bin3.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/923311/ft2_4FGL_J1459.0+7140_daily_bin3.fits
.....................!
real 12.52
user 12.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/923311/ft1_filtered_4FGL_J1459.0+7140_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/923311/ft2_4FGL_J1459.0+7140_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/923311/ltcube_240105601_240364801_4FGL_J1459.0+7140_daily_bin3.fits outfile=/scratch/kocevski/923311/expmap_240105601_240364801_4FGL_J1459.0+7140_daily_bin3.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/923311/ltcube_240105601_240364801_4FGL_J1459.0+7140_daily_bin3.fits
.....................!
real 189.99
user 184.97
sys 4.64

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

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.906       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4336       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7945       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .64397       1.0000         .10000E-03   10000.    
     8 'Prefactor '    41.929       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4717       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.335       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4296       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.725       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.813       1.0000         .10000E-03   10000.    
    23 'norm      '    .96373       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .20807E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1230       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86723       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=   6329.407     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3526 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.842        99.232       -.53914E-04   -.32803E-04
   2  Prefactor     .10000E-03    31.172       -.65145E-05** at limit **
   3  Prefactor     .10000E-03    38.320        .14091E-04** at limit **
   4  Prefactor     7.4351        6.8830        .19318E-05   -.18238E-03
   5  Prefactor     3.7763        32.274        .21592E-04    .69101E-04
   6  Prefactor     .10000E-03    16.602        .67802E-06** at limit **
   7  Prefactor     .66628        9.0039       -.26280E-05   -.31720E-03
   8  Prefactor     41.929        22.054       -.26164E-06    .16140E-03
   9  Prefactor     .10000E-03    13.703        .14215E-05** at limit **
  10  Prefactor     .10000E-03    245.18        .79881E-05** at limit **
  11  Prefactor     .10000E-03    43.612       -.49032E-06** at limit **
  12  Prefactor     6.4718        12.683       -.69681E-06   -.29596E-04
  13  Prefactor     21.336        21.882       -.10262E-05    .46755E-04
  14  Prefactor     .10000E-03    14.560       -.48842E-05** at limit **
  15  Prefactor     .10000E-03    42.401        .33715E-05** at limit **
  16  Prefactor     .10000E-03    6.9038       -.30968E-06** at limit **
  17  Prefactor     .10000E-03    13.723        .60288E-06** at limit **
  18  norm          2.4302        2.3260        .94309E-06    .21372E-03
  19  Prefactor     16.655        61.991       -.90247E-04    .36847E-05
  20  norm          .10000E-03    5.5882       -.67781E-06** at limit **
  21  Prefactor     .10000E-03    53.939       -.22545E-04** at limit **
  22  Prefactor     14.813        37.991       -.24905E-05    .85648E-06
  23  norm          .96361        .68680        .49909E-07   -.96370E-04
  24  Prefactor     .10389E-03    1.1719       -.33362E-08** at limit **
  25  Prefactor     .10000E-03    8.5037        .92990E-07** at limit **
  26  Prefactor     .10000E-03    15.737        .21522E-05** at limit **
  27  Normalizat    1.1229        .17577        .32524E-05    .59176E-04
  28  Prefactor     .86730        .14882        .41840E-06    .25281E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.8416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.43509
  Prefactor  = 3.77626
  Prefactor  = 0.0001
  Prefactor  = 0.666279
  Prefactor  = 41.9292
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.47183
  Prefactor  = 21.3364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.43016
  Prefactor  = 16.6551
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8125
  norm       = 0.963606
  Prefactor  = 0.000103895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12293
  Prefactor  = 0.867296
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.407     FROM HESSE     STATUS=OK           523 CALLS     4049 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.842        99.179        .21548E-03   -1.3841    
   2  Prefactor     .10000E-03    31.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4351        6.8626        .14710E-03   -1.5163    
   5  Prefactor     3.7763        31.710        .20722E-03   -1.5319    
   6  Prefactor     .10000E-03    16.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .66628        35.737        .43188E-02   -1.5545    
   8  Prefactor     41.929        22.026        .61908E-04   -1.4412    
   9  Prefactor     .10000E-03    13.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    245.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.4718        12.680        .15776E-03   -1.5199    
  13  Prefactor     21.336        21.906        .86717E-04   -1.4784    
  14  Prefactor     .10000E-03    14.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    42.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.9203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4302        2.3206        .11466E-03   -1.5396    
  19  Prefactor     16.655        62.012        .97933E-04   -1.4892    
  20  norm          .10000E-03    5.5905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    53.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.813        37.800        .10407E-03   -1.4938    
  23  norm          .96361        .68844        .51957E-04   -1.5512    
  24  Prefactor     .10389E-03    3.6222        .29011E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.5189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1229        .20689        .23755E-03   -.89019    
  28  Prefactor     .86730        .17469        .23782E-03   -.97293    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77403e-09
Minuit parameter uncertainties:
  1  99.369
  2  3.16099e-05
  3  0.000136579
  4  6.86333
  5  21.9012
  6  8.59401e-05
  7  9.7647
  8  22.0304
  9  1.43847e-05
  10  3.23954e-05
  11  3.00432e-05
  12  12.6851
  13  21.9146
  14  1.44989e-05
  15  7.71637e-05
  16  5.59621e-06
  17  5.79038e-06
  18  2.32071
  19  62.2533
  20  6.99633e-06
  21  2.7911e-05
  22  37.8609
  23  0.68845
  24  0.00751251
  25  1.07348e-05
  26  4.6609e-05
  27  0.20704
  28  0.174805
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  2.134e+01  2.191e+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:  8.673e-01  1.748e-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.123e+00  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.78
Ra Dec: 224.753 71.673
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 2.24e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 6.51e-06 +/- 6.69e-06

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

Saving results to:
/scratch/kocevski/923311/likelihoodResults_240105601_240364801_4FGL_J1459.0+7140_daily_bin3.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) = 6329.05700601
delta logL = 0.349496094185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6329.05306547
delta logL = 0.353436629094

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.830       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8037       1.0000          .0000       10.000    
     3 'Normalizat'    1.1371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85995       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=   6329.053     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      259 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.838        25.292        .83832E-04   -.15004E-03
   2  Index         1.8039        .73677        .11286E-01   -.10302E-04
   3  Normalizat    1.1374        .19254        .23617E-03   -.71242E-03
   4  Prefactor     .85996        .17230        .23868E-03   -.57888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.8377
  Index      = 1.80389
  Normalizat = 1.13741
  Prefactor  = 0.859965
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.053     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.838        25.603        .16766E-04   -1.4752    
   2  Index         1.8039        .74594        .45145E-03   -.69349    
   3  Normalizat    1.1374        .19269        .47235E-04   -.88560    
   4  Prefactor     .85996        .17243        .47736E-04   -.97554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13688e-10
Minuit parameter uncertainties:
  1  25.6157
  2  0.7507
  3  0.192805
  4  0.172541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/923311': 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) = 6329.05305804
delta logL = 0.353444066426

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  2.284e+01  2.562e+01  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  1.804e+00  7.507e-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:  8.600e-01  1.725e-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.137e+00  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.49
Ra Dec: 224.753 71.673
Photon Index (Free Index): 1.80 +/- 0.75
Photon Flux (Free Index): 1.09e-08 +/- 1.59e-08
Energy Flux (Free Index): 1.29e-05 +/- 2.09e-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/923311/cmap_HighResolution_240105601_240364801_4FGL_J1459.0+7140_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', comment='SUCCESS', photon_flux='2.24e-08', energy_flux2='1.29e-05', photon_flux_error='2.30e-08', dlogl='3.53e-01', energy_flux='6.51e-06', photon_flux2='1.09e-08', job_status='DONE', time_completed='2021-09-10 17:16:42.397688', photon_index_error2='0.75', photon_index2='1.80', ts='2.78', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='8.76e-08', energy_flux_error2='2.09e-05', EG='1.12', time_epoch_completed='1631319402.4', return_code='0', job_id='923311', GAL2='0.86', EG2='1.14', return_code2='0', energy_flux_error='6.69e-06', photon_flux_error2='1.59e-08', ts2='3.49', photon_index='2.50' WHERE bin_id='3' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:16:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 923311: <4FGL_J1459.0+7140_daily_bin3> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin3 224.753 71.6733 240105601 240364801 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 :                                   911.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

