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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin747
RA = 224.753, Dec = 71.6733
tmin = 432950401, tmax = 433209601
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='926585', job_status='RUN', time_executed='2021-09-10 17:12:00.503977', time_epoch_executed='1631319120.5' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926585

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926585/ft1_4FGL_J1459.0+7140_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926585/ft2_4FGL_J1459.0+7140_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926585/ft1_4FGL_J1459.0+7140_daily_bin747.fits outfile=/scratch/kocevski/926585/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin747.fits ra=224.753 dec=71.6733 rad=12.0 tmin=432950401.0 tmax=433209601.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.68
user 5.40
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/926585/ft2_4FGL_J1459.0+7140_daily_bin747.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/926585/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin747.fits evtable="EVENTS" outfile="/scratch/kocevski/926585/ft1_filtered_4FGL_J1459.0+7140_daily_bin747.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.87
user 0.31
sys 0.55

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926585/ft1_filtered_4FGL_J1459.0+7140_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/926585/ft2_4FGL_J1459.0+7140_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/926585/ltcube_432950401_433209601_4FGL_J1459.0+7140_daily_bin747.fits outfile=/scratch/kocevski/926585/expmap_432950401_433209601_4FGL_J1459.0+7140_daily_bin747.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/926585/ltcube_432950401_433209601_4FGL_J1459.0+7140_daily_bin747.fits
.....................!
real 192.23
user 187.10
sys 4.78

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/926585/ft1_filtered_4FGL_J1459.0+7140_daily_bin747.fits scfile=/scratch/kocevski/926585/ft2_4FGL_J1459.0+7140_daily_bin747.fits outfile=/scratch/kocevski/926585/cmap_432950401_433209601_4FGL_J1459.0+7140_daily_bin747.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/926585/ft1_filtered_4FGL_J1459.0+7140_daily_bin747.fits scfile=/scratch/kocevski/926585/ft2_4FGL_J1459.0+7140_daily_bin747.fits outfile=/scratch/kocevski/926585/cmap_HighResolution_432950401_433209601_4FGL_J1459.0+7140_daily_bin747.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.51
user 0.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.972       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11964E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6503       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.465       1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.820       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14195E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.8903       1.0000         .10000E-03   10000.    
    19 'Prefactor '    463.27       1.0000         .10000E-03   10000.    
    20 'norm      '    8.6903       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10819E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1199       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    68.012       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1696       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .74759       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=   5145.848     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3504 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.474       -.45789E-06** at limit **
   2  Prefactor     .10000E-03    55.888       -.30415E-06** at limit **
   3  Prefactor     48.017        34.054        .21810E-05    .43230E-03
   4  Prefactor     .10000E-03    3.5075       -.32096E-06** at limit **
   5  Prefactor     .10164E-03    11.572       -.36545E-05** at limit **
   6  Prefactor     .10000E-03    4.7028       -.16601E-06** at limit **
   7  Prefactor     5.6523        6.7197        .46613E-05    .39387E-03
   8  Prefactor     10.067        17.024       -.33247E-06   -.27374E-06
   9  Prefactor     .10000E-03    9.9039       -.36368E-07** at limit **
  10  Prefactor     .10001E-03    331.63        .15356E-05** at limit **
  11  Prefactor     47.479        53.385       -.27865E-06    .72445E-05
  12  Prefactor     50.826        39.520        .49240E-06   -.45977E-05
  13  Prefactor     .10000E-03    26.194        .72478E-07** at limit **
  14  Prefactor     .10000E-03    16.425       -.11206E-06** at limit **
  15  Prefactor     .10000E-03    16.937        .41319E-08** at limit **
  16  Prefactor     .10000E-03    38.748        .40831E-05** at limit **
  17  Prefactor     .10000E-03    19.809        .39472E-06** at limit **
  18  norm          9.8848        13.382        .15881E-05    .33633E-04
  19  Prefactor     463.83        453.11        .13716E-05    .47017E-04
  20  norm          8.6895        9.8819       -.63777E-06   -.21579E-04
  21  Prefactor     .10016E-03    997.70       -.12659E-04** at limit **
  22  Prefactor     .10000E-03    117.89        .70520E-06** at limit **
  23  norm          2.1196        1.3623        .49624E-07    .33515E-04
  24  Prefactor     .10000E-03    .79731       -.55877E-07** at limit **
  25  Prefactor     68.010        37.156       -.11073E-06   -.41328E-05
  26  Prefactor     .10000E-03    6.2972       -.34997E-07** at limit **
  27  Normalizat    1.1693        .19671       -.34691E-05    .42202E-03
  28  Prefactor     .74792        .17121        .25300E-05    .10296E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.0173
  Prefactor  = 0.0001
  Prefactor  = 0.00010164
  Prefactor  = 0.0001
  Prefactor  = 5.65232
  Prefactor  = 10.0667
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 47.4789
  Prefactor  = 50.8259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.88482
  Prefactor  = 463.83
  norm       = 8.6895
  Prefactor  = 0.000100162
  Prefactor  = 0.0001
  norm       = 2.11964
  Prefactor  = 0.0001
  Prefactor  = 68.0104
  Prefactor  = 0.0001
  Normalizat = 1.16933
  Prefactor  = 0.747923
 **********
 **   18 **HESSE 
 **********

 FCN=   5145.848     FROM HESSE     STATUS=OK           509 CALLS     4013 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    56.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.017        32.586        .57894E-04   -1.4321    
   4  Prefactor     .10000E-03    3.5814        .13095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10164E-03    110.22        .42206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7335        .15186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6523        6.7169        .84497E-03   -1.5232    
   8  Prefactor     10.067        17.015        .12628E-03   -1.5073    
   9  Prefactor     .10000E-03    9.9054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    331.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     47.479        53.384        .58201E-04   -1.4329    
  12  Prefactor     50.826        39.532        .56256E-04   -1.4281    
  13  Prefactor     .10000E-03    26.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.8848        13.373        .63709E-03   -1.5079    
  19  Prefactor     463.83        453.97        .95151E-04   -1.1367    
  20  norm          8.6895        9.8819        .67987E-03   -1.5118    
  21  Prefactor     .10016E-03    1002.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    118.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1196        1.3573        .61937E-04   -1.5417    
  24  Prefactor     .10000E-03    .80034        .62541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     68.010        37.223        .48670E-04   -1.4057    
  26  Prefactor     .10000E-03    6.2986        .17582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1693        .21821        .22400E-03   -.87556    
  28  Prefactor     .74792        .19234        .24844E-03   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45937e-08
Minuit parameter uncertainties:
  1  9.86864e-05
  2  6.10654e-06
  3  32.5981
  4  1.88867e-05
  5  0.0269418
  6  1.18877e-05
  7  6.7178
  8  17.0236
  9  3.59617e-06
  10  0.00288238
  11  53.4383
  12  39.5521
  13  5.93584e-05
  14  1.3142e-05
  15  2.45506e-05
  16  0.000266387
  17  7.83457e-06
  18  13.3772
  19  457.574
  20  9.88374
  21  0.025957
  22  0.000130463
  23  1.35729
  24  8.36458e-07
  25  37.2356
  26  1.48868e-06
  27  0.218381
  28  0.192515
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  5.936e-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:  7.479e-01  1.925e-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.169e+00  2.184e-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: 7.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/926585/likelihoodResults_432950401_433209601_4FGL_J1459.0+7140_daily_bin747.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) = 5145.84804011
delta logL = -0.000181167753908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5145.84786121
delta logL = -2.27322925639e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13058E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9594       1.0000          .0000       10.000    
     3 'Normalizat'    1.1693       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74793       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=   5145.848     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      270 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11087E-03    13.721        .18142E-01** at limit **
   2  Index         2.7650        6.3307        .50000        .14736E-04
   3  Normalizat    1.1693        .38304E-02    .22400E-03   -.17732E-03
   4  Prefactor     .74793        .34912E-02    .24844E-03   -.60038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110874
  Index      = 2.76499
  Normalizat = 1.16932
  Prefactor  = 0.747928
 **********
 **   18 **HESSE 
 **********

 FCN=   5145.848     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11087E-03    150.11        .30990E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7650        5.2512        .50000       -.46341    
   3  Normalizat    1.1693        .12655E-01    .44800E-04   -.87556    
   4  Prefactor     .74793        .11535E-01    .99375E-05   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7386e-08
Minuit parameter uncertainties:
  1  0.0810073
  2  572.447
  3  0.0126551
  4  0.0115346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926585': 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) = 5145.84785981
delta logL = -8.73222234077e-07

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.109e-04  8.101e-02  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  2.765e+00  5.724e+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:  7.479e-01  1.153e-02  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.169e+00  1.266e-02  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/926585/cmap_HighResolution_432950401_433209601_4FGL_J1459.0+7140_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-03', job_status='DONE', photon_flux_upper_limit='7.07e-08', time_completed='2021-09-10 17:25:50.911616', job_id='926585', GAL2='0.75', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631319950.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-8.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='747' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:25:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 926585: <4FGL_J1459.0+7140_daily_bin747> in cluster <slac> Done

Job <4FGL_J1459.0+7140_daily_bin747> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 17:11:42 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:11:44 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:11:44 2021
Terminated at Fri Sep 10 17:25:51 2021
Results reported at Fri Sep 10 17:25:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin747 224.753 71.6733 432950401 433209601 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 :                                   829.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            849 sec.

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

