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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin872
RA = 231.849, Dec = 31.2989
tmin = 465350401, tmax = 465609601
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='530296', job_status='RUN', time_executed='2021-09-12 03:15:56.055825', time_epoch_executed='1631441756.06' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='872'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530296

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530296/ft1_4FGL_J1527.3+3117_daily_bin872.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530296/ft2_4FGL_J1527.3+3117_daily_bin872.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530296/ft1_4FGL_J1527.3+3117_daily_bin872.fits outfile=/scratch/kocevski/530296/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin872.fits ra=231.849 dec=31.2989 rad=12.0 tmin=465350401.0 tmax=465609601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.40
user 3.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530296/ft1_filtered_4FGL_J1527.3+3117_daily_bin872.fits" evtable="EVENTS" scfile=/scratch/kocevski/530296/ft2_4FGL_J1527.3+3117_daily_bin872.fits sctable="SC_DATA" outfile=/scratch/kocevski/530296/ltcube_465350401_465609601_4FGL_J1527.3+3117_daily_bin872.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/530296/ft2_4FGL_J1527.3+3117_daily_bin872.fits
.....................!
real 12.62
user 12.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530296/ft1_filtered_4FGL_J1527.3+3117_daily_bin872.fits evtable="EVENTS" scfile=/scratch/kocevski/530296/ft2_4FGL_J1527.3+3117_daily_bin872.fits sctable="SC_DATA" expcube=/scratch/kocevski/530296/ltcube_465350401_465609601_4FGL_J1527.3+3117_daily_bin872.fits outfile=/scratch/kocevski/530296/expmap_465350401_465609601_4FGL_J1527.3+3117_daily_bin872.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/530296/ltcube_465350401_465609601_4FGL_J1527.3+3117_daily_bin872.fits
.....................!
real 189.44
user 184.64
sys 4.46

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/530296/ft1_filtered_4FGL_J1527.3+3117_daily_bin872.fits scfile=/scratch/kocevski/530296/ft2_4FGL_J1527.3+3117_daily_bin872.fits outfile=/scratch/kocevski/530296/cmap_465350401_465609601_4FGL_J1527.3+3117_daily_bin872.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.58
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530296/ft1_filtered_4FGL_J1527.3+3117_daily_bin872.fits scfile=/scratch/kocevski/530296/ft2_4FGL_J1527.3+3117_daily_bin872.fits outfile=/scratch/kocevski/530296/cmap_HighResolution_465350401_465609601_4FGL_J1527.3+3117_daily_bin872.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/530296/ft1_filtered_4FGL_J1527.3+3117_daily_bin872.fits', '/scratch/kocevski/530296/ft2_4FGL_J1527.3+3117_daily_bin872.fits', expMap='/scratch/kocevski/530296/expmap_465350401_465609601_4FGL_J1527.3+3117_daily_bin872.fits', expCube='/scratch/kocevski/530296/ltcube_465350401_465609601_4FGL_J1527.3+3117_daily_bin872.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/530296/Model_4FGL_J1527.3+3117_daily_bin872.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/530296/ft1_filtered_4FGL_J1527.3+3117_daily_bin872.fits
Spacecraft file(s): /scratch/kocevski/530296/ft2_4FGL_J1527.3+3117_daily_bin872.fits
Exposure map: /scratch/kocevski/530296/expmap_465350401_465609601_4FGL_J1527.3+3117_daily_bin872.fits
Exposure cube: /scratch/kocevski/530296/ltcube_465350401_465609601_4FGL_J1527.3+3117_daily_bin872.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/530296/Model_4FGL_J1527.3+3117_daily_bin872.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) = 6991.99096583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.514       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.766       1.0000         .10000E-03   10000.    
     4 'norm      '    15.382       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22115E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9483       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.900       1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.374       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4913       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4030       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4898       1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.222       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12379E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .43917       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1253       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91330       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=   6991.970     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2584 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5761        .14508E-07** at limit **
   2  norm          27.514        8.0359        .87473E-07   -.39494E-05
   3  Prefactor     37.761        34.984        .17138E-05   -.75587E-05
   4  norm          15.380        9.9671        .10047E-06   -.34503E-05
   5  Prefactor     .10000E-03    9.0126        .20003E-07** at limit **
   6  Prefactor     .10000E-03    10.251        .19220E-07** at limit **
   7  Prefactor     .10000E-03    4.9426       -.47365E-06** at limit **
   8  norm          1.9465        1.3691        .18915E-07   -.69579E-04
   9  Prefactor     20.888        59.195        .53992E-05   -.30341E-05
  10  Prefactor     58.371        52.860        .85352E-06   -.53001E-06
  11  Prefactor     2.4912        4.1706       -.27204E-06   -.19188E-04
  12  Prefactor     .10000E-03    26.259        .84586E-06** at limit **
  13  norm          6.4004        2.0093       -.87820E-06   -.25921E-04
  14  Prefactor     2.4996        19.982        .13920E-04    .95626E-06
  15  Prefactor     31.163        45.712        .10181E-04   -.66960E-06
  16  Prefactor     .10000E-03    4.8105        .53374E-06** at limit **
  17  norm          .10000E-03    4.1313       -.38051E-07** at limit **
  18  Prefactor     .10000E-03    .78331       -.20251E-06** at limit **
  19  Prefactor     .10000E-03    42.735       -.10653E-05** at limit **
  20  Prefactor     .10000E-03    6.0948        .21116E-06** at limit **
  21  Prefactor     .42817        1.8146        .14375E-06   -.54564E-04
  22  Normalizat    1.1254        .18554       -.18513E-05    .10899E-04
  23  Prefactor     .91327        .14163        .11486E-06   -.91759E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 27.5143
  Prefactor  = 37.7606
  norm       = 15.3796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.94647
  Prefactor  = 20.8875
  Prefactor  = 58.3711
  Prefactor  = 2.49119
  Prefactor  = 0.0001
  norm       = 6.40041
  Prefactor  = 2.49963
  Prefactor  = 31.1632
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.428169
  Normalizat = 1.12536
  Prefactor  = 0.913269
 **********
 **   18 **HESSE 
 **********

 FCN=   6991.970     FROM HESSE     STATUS=OK           370 CALLS     2954 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5889        .13106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.514        8.0377        .76375E-04   -1.4658    
   3  Prefactor     37.761        35.286        .65218E-04   -1.4478    
   4  norm          15.380        9.9648        .10212E-03   -1.4923    
   5  Prefactor     .10000E-03    9.0966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9465        1.3669        .77405E-04   -1.5429    
   9  Prefactor     20.888        59.247        .87612E-04   -1.4794    
  10  Prefactor     58.371        52.876        .52509E-04   -1.4178    
  11  Prefactor     2.4912        4.1509        .21470E-03   -1.5392    
  12  Prefactor     .10000E-03    26.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4004        2.0352        .50282E-04   -1.5202    
  14  Prefactor     2.4996        20.673        .12952E-02   -1.5392    
  15  Prefactor     31.163        45.958        .71707E-04   -1.4591    
  16  Prefactor     .10000E-03    4.8140        .17912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.1418        .16598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .79128        .72276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .42817        7.9196        .21075E-02   -1.5577    
  22  Normalizat    1.1254        .22224        .25895E-03   -.88942    
  23  Prefactor     .91327        .16886        .23058E-03   -.95679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51745e-08
Minuit parameter uncertainties:
  1  1.87595e-06
  2  8.03805
  3  35.3057
  4  9.96586
  5  3.31366e-06
  6  1.5125e-05
  7  7.26292e-06
  8  1.36689
  9  59.4145
  10  52.9184
  11  4.15134
  12  3.87848e-05
  13  2.03523
  14  14.3834
  15  46.0103
  16  5.06822e-07
  17  1.1795e-06
  18  8.7465e-06
  19  0.000105052
  20  8.92869e-06
  21  3.68303
  22  0.222423
  23  0.168954
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  2.500e+00  1.438e+01  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:  9.133e-01  1.690e-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:  1.125e+00  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 231.849 31.299
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/530296/likelihoodResults_465350401_465609601_4FGL_J1527.3+3117_daily_bin872.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) = 6991.81688771
delta logL = 0.152955739456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6991.77989676
delta logL = 0.189946692725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2693       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4482       1.0000          .0000       10.000    
     3 'Normalizat'    1.1007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92444       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.

 FCN=   6991.780     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      236 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2591        42.955        .98758E-02    .12234E-02
   2  Index         3.4506        3.1720        .13094        .15223E-03
   3  Normalizat    1.1007        .37465E-01    .59055E-01    .11629E-04
   4  Prefactor     .92433        .30522E-01    .45316E-01    .10056E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25913
  Index      = 3.45064
  Normalizat = 1.10074
  Prefactor  = 0.924329
 **********
 **   18 **HESSE 
 **********

 FCN=   6991.780     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2591        148.01        .13740E-03   -1.5484    
   2  Index         3.4506        6.1332        .76504E-02   -.31506    
   3  Normalizat    1.1007        .18232        .26117E-03   -.89728    
   4  Prefactor     .92433        .14824        .22923E-03   -.95296    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.26087e-09
Minuit parameter uncertainties:
  1  27.3711
  2  9.30988
  3  0.182423
  4  0.148307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530296': 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) = 6991.77989265
delta logL = 0.189950795183

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.259e+00  2.737e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  3.451e+00  9.310e+00  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:  9.243e-01  1.483e-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:  1.101e+00  1.824e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/530296/cmap_HighResolution_465350401_465609601_4FGL_J1527.3+3117_daily_bin872.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.47e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-12 03:27:52.656635', job_id='530296', GAL2='0.92', fit_tolerance='1e-08', EG2='1.10', EG='1.13', time_epoch_completed='1631442472.66', return_code2='102', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.90e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='872' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:27:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 530296: <4FGL_J1527.3+3117_daily_bin872> in cluster <slac> Done

Job <4FGL_J1527.3+3117_daily_bin872> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 12 03:15:32 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 03:15:43 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:15:43 2021
Terminated at Sun Sep 12 03:27:53 2021
Results reported at Sun Sep 12 03:27:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin872 231.849 31.2989 465350401 465609601 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             383.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            741 sec.

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

