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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin1007
RA = 231.849, Dec = 31.2989
tmin = 500342401, tmax = 500601601
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='530600', job_status='RUN', time_executed='2021-09-12 03:20:34.722397', time_epoch_executed='1631442034.72' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530600

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530600/ft1_4FGL_J1527.3+3117_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530600/ft2_4FGL_J1527.3+3117_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530600/ft1_4FGL_J1527.3+3117_daily_bin1007.fits outfile=/scratch/kocevski/530600/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1007.fits ra=231.849 dec=31.2989 rad=12.0 tmin=500342401.0 tmax=500601601.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 4.65
user 4.40
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/530600/ft2_4FGL_J1527.3+3117_daily_bin1007.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530600/ft2_4FGL_J1527.3+3117_daily_bin1007.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/530600/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/530600/ft1_filtered_4FGL_J1527.3+3117_daily_bin1007.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530600/ft1_filtered_4FGL_J1527.3+3117_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/530600/ft2_4FGL_J1527.3+3117_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/530600/ltcube_500342401_500601601_4FGL_J1527.3+3117_daily_bin1007.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/530600/ft2_4FGL_J1527.3+3117_daily_bin1007.fits
.....................!
real 12.45
user 11.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530600/ft1_filtered_4FGL_J1527.3+3117_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/530600/ft2_4FGL_J1527.3+3117_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/530600/ltcube_500342401_500601601_4FGL_J1527.3+3117_daily_bin1007.fits outfile=/scratch/kocevski/530600/expmap_500342401_500601601_4FGL_J1527.3+3117_daily_bin1007.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/530600/ltcube_500342401_500601601_4FGL_J1527.3+3117_daily_bin1007.fits
.....................!
real 191.25
user 185.17
sys 5.71

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J1527.3+3117 @ 231.849 31.2989

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/530600/ft1_filtered_4FGL_J1527.3+3117_daily_bin1007.fits scfile=/scratch/kocevski/530600/ft2_4FGL_J1527.3+3117_daily_bin1007.fits outfile=/scratch/kocevski/530600/cmap_500342401_500601601_4FGL_J1527.3+3117_daily_bin1007.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=231.849 yref=31.2989 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/530600/ft1_filtered_4FGL_J1527.3+3117_daily_bin1007.fits scfile=/scratch/kocevski/530600/ft2_4FGL_J1527.3+3117_daily_bin1007.fits outfile=/scratch/kocevski/530600/cmap_HighResolution_500342401_500601601_4FGL_J1527.3+3117_daily_bin1007.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=231.849 yref=31.2989 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/530600/ft1_filtered_4FGL_J1527.3+3117_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/530600/ft2_4FGL_J1527.3+3117_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530600/Model_4FGL_J1527.3+3117_daily_bin1007.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/530600/ft1_filtered_4FGL_J1527.3+3117_daily_bin1007.fits.....................!
real 53.66
user 52.23
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/530600/ft1_filtered_4FGL_J1527.3+3117_daily_bin1007.fits', '/scratch/kocevski/530600/ft2_4FGL_J1527.3+3117_daily_bin1007.fits', expMap='/scratch/kocevski/530600/expmap_500342401_500601601_4FGL_J1527.3+3117_daily_bin1007.fits', expCube='/scratch/kocevski/530600/ltcube_500342401_500601601_4FGL_J1527.3+3117_daily_bin1007.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/530600/Model_4FGL_J1527.3+3117_daily_bin1007.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1527.3+3117'

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.294e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.570e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/530600/ft1_filtered_4FGL_J1527.3+3117_daily_bin1007.fits
Spacecraft file(s): /scratch/kocevski/530600/ft2_4FGL_J1527.3+3117_daily_bin1007.fits
Exposure map: /scratch/kocevski/530600/expmap_500342401_500601601_4FGL_J1527.3+3117_daily_bin1007.fits
Exposure cube: /scratch/kocevski/530600/ltcube_500342401_500601601_4FGL_J1527.3+3117_daily_bin1007.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/530600/Model_4FGL_J1527.3+3117_daily_bin1007.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) = 7183.52295046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36240       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0050       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.850       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.595       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3940       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.782       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1522       1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.140       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.511       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0624       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4521       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8133       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .66508       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7183.518     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2520 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39144        25.177        .13664E-04   -.23492E-03
   2  norm          3.0056        4.2808        .22417E-06    .27361E-03
   3  Prefactor     23.848        38.172        .90542E-06    .51724E-04
   4  norm          .10000E-03    2.8942        .13503E-07** at limit **
   5  Prefactor     29.598        17.291       -.98597E-07   -.31463E-04
   6  Prefactor     6.3978        7.2040        .46354E-06    .12600E-03
   7  Prefactor     27.783        11.671        .16784E-07    .53975E-04
   8  norm          1.1489        2.0033        .20590E-06    .60693E-03
   9  Prefactor     68.169        68.831       -.90958E-05   -.33509E-03
  10  Prefactor     .10000E-03    34.457       -.46045E-05** at limit **
  11  Prefactor     .10000E-03    4.2036        .18291E-06** at limit **
  12  Prefactor     27.516        23.500       -.55657E-06   -.79440E-04
  13  norm          4.0615        1.3254        .12341E-07    .40038E-04
  14  Prefactor     .10000E-03    4.1836       -.32683E-06** at limit **
  15  Prefactor     .10000E-03    53.914        .37186E-05** at limit **
  16  Prefactor     .10000E-03    8.0349        .36863E-06** at limit **
  17  norm          .10000E-03    6.3627       -.17375E-06** at limit **
  18  Prefactor     .10000E-03    1.6399       -.12526E-06** at limit **
  19  Prefactor     .10000E-03    11.613       -.88505E-06** at limit **
  20  Prefactor     5.4534        7.0685       -.89351E-06    .91299E-03
  21  Prefactor     1.8136        2.8045       -.17074E-06    .19456E-03
  22  Normalizat    .66518        .19991        .57639E-06    .24415E-04
  23  Prefactor     1.2904        .15070        .11150E-06    .17906E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.39144
  norm       = 3.00557
  Prefactor  = 23.8484
  norm       = 0.0001
  Prefactor  = 29.5978
  Prefactor  = 6.39784
  Prefactor  = 27.7828
  norm       = 1.14886
  Prefactor  = 68.1687
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 27.5161
  norm       = 4.06146
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.4534
  Prefactor  = 1.8136
  Normalizat = 0.665182
  Prefactor  = 1.29035
 **********
 **   18 **HESSE 
 **********

 FCN=   7183.518     FROM HESSE     STATUS=OK           370 CALLS     2890 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39144        26.090        .38238E-02   -1.5583    
   2  norm          3.0056        4.2786        .20349E-03   -1.5361    
   3  Prefactor     23.848        38.340        .82022E-04   -1.4731    
   4  norm          .10000E-03    2.8946        .14082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.598        17.258        .73648E-04   -1.4619    
   6  Prefactor     6.3978        7.1443        .15873E-03   -1.5202    
   7  Prefactor     27.783        11.672        .76007E-04   -1.4653    
   8  norm          1.1489        1.9722        .13981E-03   -1.5494    
   9  Prefactor     68.169        71.497        .48625E-04   -1.4055    
  10  Prefactor     .10000E-03    34.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2239        .16964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.516        23.517        .76379E-04   -1.4658    
  13  norm          4.0615        1.3251        .53215E-04   -1.5305    
  14  Prefactor     .10000E-03    4.2037        .16921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    54.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.0742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.4053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6887        .21167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4534        7.3347        .86044E-03   -1.5241    
  21  Prefactor     1.8136        2.7907        .16909E-03   -1.5439    
  22  Normalizat    .66518        .22504        .33636E-03   -1.0528    
  23  Prefactor     1.2904        .17140        .19939E-03   -.83594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45812e-09
Minuit parameter uncertainties:
  1  6.39356
  2  4.27905
  3  38.3791
  4  2.01317e-06
  5  17.2612
  6  7.14523
  7  11.6725
  8  1.97235
  9  71.5876
  10  0.000735029
  11  1.88012e-06
  12  23.5248
  13  1.32509
  14  2.55238e-05
  15  0.000598988
  16  3.11355e-05
  17  9.8405e-06
  18  1.36089e-05
  19  8.11768e-05
  20  7.33592
  21  2.79092
  22  0.225355
  23  0.171475
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.552e-05  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.570e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.290e+00  1.715e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  6.652e-01  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 231.849 31.299
Photon Flux Upper Limit: 7.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/530600/likelihoodResults_500342401_500601601_4FGL_J1527.3+3117_daily_bin1007.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) = 7183.51952915
delta logL = -0.0011322284563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7183.51839682
delta logL = 1.01061232272e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5483       1.0000          .0000       10.000    
     3 'Normalizat'    .66516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2904       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+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=   7183.518     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      238 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10113E-03    33.184        .17222E-02** at limit **
   2  Index         2.4982        6.2286        .50000        .37615E-04
   3  Normalizat    .66518        .12327E-01    .33637E-03    .27850E-04
   4  Prefactor     1.2904        .99277E-02    .19939E-03    .81969E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101132
  Index      = 2.49823
  Normalizat = 0.665183
  Prefactor  = 1.29035
 **********
 **   18 **HESSE 
 **********

 FCN=   7183.518     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10113E-03    148.22        .34444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4982        5.1763        .50000       -.52401    
   3  Normalizat    .66518        .26867E-01    .13455E-04   -1.0528    
   4  Prefactor     1.2904        .21637E-01    .39878E-04   -.83594    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.52531e-08
Minuit parameter uncertainties:
  1  0.02597
  2  353.969
  3  0.0268676
  4  0.0216371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530600': 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) = 7183.51839637
delta logL = 5.42982888874e-07

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.011e-04  2.597e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.498e+00  3.540e+02  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.290e+00  2.164e-02  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  6.652e-01  2.687e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 231.849 31.299

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/530600/cmap_HighResolution_500342401_500601601_4FGL_J1527.3+3117_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', job_status='DONE', photon_flux_upper_limit='7.67e-08', time_completed='2021-09-12 03:32:17.176895', job_id='530600', GAL2='1.29', fit_tolerance='1e-08', EG2='0.67', EG='0.67', time_epoch_completed='1631442737.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='5.43e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1007' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:32:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 530600: <4FGL_J1527.3+3117_daily_bin1007> in cluster <slac> Done

Job <4FGL_J1527.3+3117_daily_bin1007> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 03:15:47 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 03:16:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 03:16:27 2021
Terminated at Sun Sep 12 03:32:17 2021
Results reported at Sun Sep 12 03:32:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin1007 231.849 31.2989 500342401 500601601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1527.3+3117 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   698.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            990 sec.

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

