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


Performing analysis on: 4FGL_J1459.0+7140_daily_bin13
RA = 224.753, Dec = 71.6733
tmin = 242697601, tmax = 242956801
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='923326', job_status='RUN', time_executed='2021-09-10 17:01:24.714389', time_epoch_executed='1631318484.71' WHERE source_name='4FGL J1459.0+7140' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/923326

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/923326/ft1_4FGL_J1459.0+7140_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/923326/ft2_4FGL_J1459.0+7140_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/923326/ft1_4FGL_J1459.0+7140_daily_bin13.fits outfile=/scratch/kocevski/923326/ft1_filteredMKT_4FGL_J1459.0+7140_daily_bin13.fits ra=224.753 dec=71.6733 rad=12.0 tmin=242697601.0 tmax=242956801.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.46
user 1.27
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/923326/ft1_filtered_4FGL_J1459.0+7140_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/923326/ft2_4FGL_J1459.0+7140_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/923326/ltcube_242697601_242956801_4FGL_J1459.0+7140_daily_bin13.fits outfile=/scratch/kocevski/923326/expmap_242697601_242956801_4FGL_J1459.0+7140_daily_bin13.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/923326/ltcube_242697601_242956801_4FGL_J1459.0+7140_daily_bin13.fits
.....................!
real 190.72
user 185.10
sys 5.26

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/923326/ft1_filtered_4FGL_J1459.0+7140_daily_bin13.fits scfile=/scratch/kocevski/923326/ft2_4FGL_J1459.0+7140_daily_bin13.fits outfile=/scratch/kocevski/923326/cmap_242697601_242956801_4FGL_J1459.0+7140_daily_bin13.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/923326/ft1_filtered_4FGL_J1459.0+7140_daily_bin13.fits scfile=/scratch/kocevski/923326/ft2_4FGL_J1459.0+7140_daily_bin13.fits outfile=/scratch/kocevski/923326/cmap_HighResolution_242697601_242956801_4FGL_J1459.0+7140_daily_bin13.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.910       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7362       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.991       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.687       1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.494       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9427       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.061       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10645E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.4949       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1600       1.0000         .10000E-03   10000.    
    18 'norm      '    8.1378       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5012       1.0000         .10000E-03   10000.    
    20 'norm      '    8.1147       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.757       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.708       1.0000         .10000E-03   10000.    
    23 'norm      '    1.4528       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .86207       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99745       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=   6631.398     FROM MIGRAD    STATUS=CONVERGED    659 CALLS     3952 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.959        .46506E-05** at limit **
   2  Prefactor     .10000E-03    16.669       -.27563E-05** at limit **
   3  Prefactor     31.910        25.042        .86499E-07   -.67699E-05
   4  Prefactor     .10000E-03    1.4779       -.89708E-08** at limit **
   5  Prefactor     .10000E-03    5.7072       -.36199E-06** at limit **
   6  Prefactor     .10000E-03    5.2152        .97358E-07** at limit **
   7  Prefactor     2.7373        8.4937        .94143E-06   -.36133E-04
   8  Prefactor     42.994        21.003        .14408E-06    .24258E-04
   9  Prefactor     33.693        37.686        .10435E-05    .45735E-04
  10  Prefactor     59.446        1377.0       -.75165E-05   -.51790E-05
  11  Prefactor     .10000E-03    25.312       -.33916E-06** at limit **
  12  Prefactor     2.9431        10.368        .10933E-04   -.41471E-03
  13  Prefactor     .10000E-03    6.3273        .37463E-06** at limit **
  14  Prefactor     36.064        40.075        .59507E-06    .26045E-04
  15  Prefactor     .10000E-03    50.837       -.42921E-05** at limit **
  16  Prefactor     8.4965        18.939        .35228E-06   -.34382E-04
  17  Prefactor     8.1554        39.940       -.14322E-05   -.38917E-04
  18  norm          8.1373        3.5523       -.87423E-07   -.27190E-03
  19  Prefactor     2.5668        567.73        .43638E-04    .59812E-04
  20  norm          8.1142        17.117        .22334E-06   -.24669E-05
  21  Prefactor     28.778        63.456        .45912E-05    .85663E-04
  22  Prefactor     28.701        30.693       -.71608E-06   -.85251E-04
  23  norm          1.4528        .78393        .71155E-07   -.25737E-03
  24  Prefactor     .10000E-03    1.1725       -.43631E-07** at limit **
  25  Prefactor     .10000E-03    13.050        .20834E-05** at limit **
  26  Prefactor     .10000E-03    8.8827       -.60806E-06** at limit **
  27  Normalizat    .86195        .16250       -.11295E-05   -.75236E-04
  28  Prefactor     .99755        .14798        .11050E-07   -.13144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 31.9098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.73732
  Prefactor  = 42.9939
  Prefactor  = 33.6927
  Prefactor  = 59.4464
  Prefactor  = 0.0001
  Prefactor  = 2.94308
  Prefactor  = 0.0001
  Prefactor  = 36.0644
  Prefactor  = 0.000100003
  Prefactor  = 8.49647
  Prefactor  = 8.15535
  norm       = 8.13734
  Prefactor  = 2.56678
  norm       = 8.11421
  Prefactor  = 28.7785
  Prefactor  = 28.7009
  norm       = 1.45275
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.86195
  Prefactor  = 0.997548
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.398     FROM HESSE     STATUS=OK           513 CALLS     4465 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.910        25.043        .70933E-04   -1.4578    
   4  Prefactor     .10000E-03    1.4858        .96624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7373        8.4906        .24615E-03   -1.5377    
   8  Prefactor     42.994        20.988        .61142E-04   -1.4396    
   9  Prefactor     33.693        37.710        .69042E-04   -1.4546    
  10  Prefactor     59.446        1381.9        .52016E-04   -1.4164    
  11  Prefactor     .10000E-03    25.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9431        10.676        .11838E-02   -1.5365    
  13  Prefactor     .10000E-03    6.3322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.064        40.097        .66737E-04   -1.4506    
  15  Prefactor     .10000E-03    51.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.4965        18.769        .13754E-03   -1.5125    
  17  Prefactor     8.1554        39.127        .14035E-03   -1.5137    
  18  norm          8.1373        3.5452        .95293E-04   -1.5137    
  19  Prefactor     2.5668        598.01        .25840E-03   -1.5388    
  20  norm          8.1142        17.139        .14074E-03   -1.5138    
  21  Prefactor     28.778        63.804        .74710E-04   -1.4635    
  22  Prefactor     28.701        30.721        .74774E-04   -1.4636    
  23  norm          1.4528        .78172        .50380E-04   -1.5467    
  24  Prefactor     .10000E-03    1.1970        .86030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.9024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .86195        .18871        .25054E-03   -.97810    
  28  Prefactor     .99755        .17246        .22117E-03   -.92811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11809e-09
Minuit parameter uncertainties:
  1  0.000780847
  2  0.000305633
  3  25.0511
  4  1.70376e-06
  5  1.90007e-05
  6  6.26056e-06
  7  8.49431
  8  20.9915
  9  37.7365
  10  589.276
  11  4.37221e-05
  12  10.6825
  13  2.82868e-05
  14  40.127
  15  0.000800051
  16  18.7819
  17  35.7644
  18  3.54526
  19  79.1692
  20  17.1497
  21  63.9557
  22  30.7374
  23  0.781725
  24  1.67927e-06
  25  0.0002106
  26  4.35354e-05
  27  0.188853
  28  0.172555
Done.

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

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  2.829e-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:  9.975e-01  1.726e-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:  8.620e-01  1.889e-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: 3.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/923326/likelihoodResults_242697601_242956801_4FGL_J1459.0+7140_daily_bin13.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) = 6631.39843672
delta logL = -0.000749534085116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6631.39768713
delta logL = 5.39794200449e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4834       1.0000          .0000       10.000    
     3 'Normalizat'    .86194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99754       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=   6631.398     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      249 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.208        .18142E-01** at limit **
   2  Index         1.8851        5.5368        .50000        .16475E-06
   3  Normalizat    .86195        .96167E-02    .25054E-03    .77913E-04
   4  Prefactor     .99755        .91189E-02    .22117E-03    .14819E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 1.88505
  Normalizat = 0.861949
  Prefactor  = 0.997549
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.398     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    377.91        .22453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8851        5.9390        .50000       -.67256    
   3  Normalizat    .86195        .28720E-01    .10021E-04   -.97810    
   4  Prefactor     .99755        .27234E-01    .44233E-04   -.92811    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.35105e-08
Minuit parameter uncertainties:
  1  0.00271259
  2  1281.18
  3  0.0287208
  4  0.0272343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/923326': 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) = 6631.39768556
delta logL = 1.62302421813e-06

Extracting fit parameters...

4FGL J1459.0+7140
   Spectrum: PowerLaw
374    Prefactor:  1.000e-04  2.713e-03  1.000e-04  1.000e+04 ( 1.000e-13)
375        Index:  1.885e+00  1.281e+03  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:  9.975e-01  2.723e-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:  8.619e-01  2.872e-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/923326/cmap_HighResolution_242697601_242956801_4FGL_J1459.0+7140_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2021-09-10 17:17:38.169814', job_id='923326', GAL2='1.00', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1631319458.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.50' WHERE bin_id='13' AND source_name='4FGL J1459.0+7140' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:17:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 923326: <4FGL_J1459.0+7140_daily_bin13> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1459.0+7140_daily_bin13 224.753 71.6733 242697601 242956801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1459.0+7140 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   973.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             321.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            985 sec.

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

