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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin35
RA = 231.849, Dec = 31.2989
tmin = 248400001, tmax = 248659201
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='524694', job_status='RUN', time_executed='2021-09-12 03:04:26.985860', time_epoch_executed='1631441066.99' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524694

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524694/ft1_4FGL_J1527.3+3117_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524694/ft2_4FGL_J1527.3+3117_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524694/ft1_4FGL_J1527.3+3117_daily_bin35.fits outfile=/scratch/kocevski/524694/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin35.fits ra=231.849 dec=31.2989 rad=12.0 tmin=248400001.0 tmax=248659201.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.42
user 1.24
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524694/ft2_4FGL_J1527.3+3117_daily_bin35.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/524694/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin35.fits evtable="EVENTS" outfile="/scratch/kocevski/524694/ft1_filtered_4FGL_J1527.3+3117_daily_bin35.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524694/ft1_filtered_4FGL_J1527.3+3117_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/524694/ft2_4FGL_J1527.3+3117_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/524694/ltcube_248400001_248659201_4FGL_J1527.3+3117_daily_bin35.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/524694/ft2_4FGL_J1527.3+3117_daily_bin35.fits
.....................!
real 13.68
user 13.19
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524694/ft1_filtered_4FGL_J1527.3+3117_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/524694/ft2_4FGL_J1527.3+3117_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/524694/ltcube_248400001_248659201_4FGL_J1527.3+3117_daily_bin35.fits outfile=/scratch/kocevski/524694/expmap_248400001_248659201_4FGL_J1527.3+3117_daily_bin35.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/524694/ltcube_248400001_248659201_4FGL_J1527.3+3117_daily_bin35.fits
.....................!
real 190.17
user 185.33
sys 4.40

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/524694/ft1_filtered_4FGL_J1527.3+3117_daily_bin35.fits scfile=/scratch/kocevski/524694/ft2_4FGL_J1527.3+3117_daily_bin35.fits outfile=/scratch/kocevski/524694/cmap_248400001_248659201_4FGL_J1527.3+3117_daily_bin35.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.81
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524694/ft1_filtered_4FGL_J1527.3+3117_daily_bin35.fits scfile=/scratch/kocevski/524694/ft2_4FGL_J1527.3+3117_daily_bin35.fits outfile=/scratch/kocevski/524694/cmap_HighResolution_248400001_248659201_4FGL_J1527.3+3117_daily_bin35.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/524694/ft1_filtered_4FGL_J1527.3+3117_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/524694/ft2_4FGL_J1527.3+3117_daily_bin35.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524694/Model_4FGL_J1527.3+3117_daily_bin35.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/524694/ft1_filtered_4FGL_J1527.3+3117_daily_bin35.fits.....................!
real 44.71
user 43.41
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11675E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .14221       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.533       1.0000         .10000E-03   10000.    
     4 'norm      '    12.851       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .29002       1.0000         .10000E-03   10000.    
     9 'Prefactor '    91.976       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18253E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.084       1.0000         .10000E-03   10000.    
    13 'norm      '    7.1369       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6283       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5598       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6104       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4950       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5299       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1678       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97018       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=   5755.723     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2580 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10012E-03    11.555        .62124E-05** at limit **
   2  norm          .19988        5.5549       -.13924E-05    .24116E-03
   3  Prefactor     24.554        29.628        .44914E-07    .12153E-04
   4  norm          12.863        9.8021        .28281E-06   -.10798E-03
   5  Prefactor     .10000E-03    8.7091        .40204E-07** at limit **
   6  Prefactor     .10000E-03    4.5718        .36791E-06** at limit **
   7  Prefactor     .10000E-03    14.068        .14141E-06** at limit **
   8  norm          .29088        1.8759       -.52777E-06   -.34018E-03
   9  Prefactor     91.888        85.812        .10673E-04    .14624E-03
  10  Prefactor     .10000E-03    229.19       -.67267E-07** at limit **
  11  Prefactor     .10000E-03    2.4580       -.96110E-09** at limit **
  12  Prefactor     11.087        23.669        .49809E-06    .72855E-04
  13  norm          7.1377        2.2457       -.59452E-07    .49291E-03
  14  Prefactor     5.6360        13.071        .31083E-06    .21031E-04
  15  Prefactor     .10000E-03    25.249        .68056E-06** at limit **
  16  Prefactor     .10000E-03    5.9340       -.43760E-07** at limit **
  17  norm          .10000E-03    8.1852       -.49452E-07** at limit **
  18  Prefactor     2.5603        2.0211       -.27064E-07    .65776E-05
  19  Prefactor     3.6061        35.718       -.24467E-06    .81859E-05
  20  Prefactor     2.4983        8.0365        .49569E-05    .58734E-03
  21  Prefactor     1.5326        3.2458        .34902E-07    .51885E-04
  22  Normalizat    1.1675        .20822        .23699E-05    .27564E-03
  23  Prefactor     .96999        .15422       -.18301E-05    .29262E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100121
  norm       = 0.199878
  Prefactor  = 24.5538
  norm       = 12.8628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.290876
  Prefactor  = 91.8876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.087
  norm       = 7.13767
  Prefactor  = 5.63601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.56034
  Prefactor  = 3.60605
  Prefactor  = 2.49835
  Prefactor  = 1.53265
  Normalizat = 1.16753
  Prefactor  = 0.969994
 **********
 **   18 **HESSE 
 **********

 FCN=   5755.723     FROM HESSE     STATUS=OK           374 CALLS     2954 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10012E-03    24.181        .38303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .19988        33.601        .33470E-02   -1.5619    
   3  Prefactor     24.554        29.751        .80874E-04   -1.4717    
   4  norm          12.863        9.7682        .11174E-03   -1.4991    
   5  Prefactor     .10000E-03    8.7349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.5840        .15809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .29088        3.5508        .17636E-02   -1.5600    
   9  Prefactor     91.888        88.145        .20951E-03   -1.3788    
  10  Prefactor     .10000E-03    232.89        .20309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4616        .11616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.087        23.728        .12033E-03   -1.5042    
  13  norm          7.1377        2.2467        .51959E-04   -1.5174    
  14  Prefactor     5.6360        13.034        .16933E-03   -1.5233    
  15  Prefactor     .10000E-03    25.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9363        .18050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.2479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5603        2.0176        .92694E-04   -1.5388    
  19  Prefactor     3.6061        35.716        .21265E-03   -1.5328    
  20  Prefactor     2.4983        8.4893        .12938E-02   -1.5392    
  21  Prefactor     1.5326        3.2142        .19105E-03   -1.5460    
  22  Normalizat    1.1675        .23857        .26261E-03   -.87612    
  23  Prefactor     .96999        .17794        .22721E-03   -.93737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24689e-08
Minuit parameter uncertainties:
  1  0.00342492
  2  5.18477
  3  29.7686
  4  9.76943
  5  7.44469e-06
  6  1.98658e-05
  7  2.5296e-06
  8  2.03237
  9  88.2705
  10  8.24657e-06
  11  5.86896e-07
  12  23.7478
  13  2.2467
  14  13.0406
  15  8.54577e-05
  16  8.28148e-06
  17  1.85411e-05
  18  2.0177
  19  22.7149
  20  8.49343
  21  3.21461
  22  0.238792
  23  0.178047
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  5.636e+00  1.304e+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.700e-01  1.780e-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.168e+00  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 231.849 31.299
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/524694/likelihoodResults_248400001_248659201_4FGL_J1527.3+3117_daily_bin35.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) = 5754.31051161
delta logL = 1.41272076109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5753.65726779
delta logL = 2.06596457634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9957       1.0000          .0000       10.000    
     3 'Normalizat'    1.0517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0330       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=   5753.657     FROM MIGRAD    STATUS=CONVERGED    268 CALLS      650 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .44469E-03    .69141E-05** at limit **
   2  Index         7.9955        .22538        .37147E-02    .61829E-03
   3  Normalizat    1.0517        .22545        .27356E-03    .46919E-04
   4  Prefactor     1.0331        .17822        .22094E-03    .13780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.99546
  Normalizat = 1.05168
  Prefactor  = 1.03313
 **********
 **   18 **HESSE 
 **********

 FCN=   5753.657     FROM HESSE     STATUS=OK            25 CALLS      675 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .44376E-03    .13828E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9955        .22319        .74295E-03    .64237    
   3  Normalizat    1.0517        .22553        .10942E-04   -.91319    
   4  Prefactor     1.0331        .17834        .44188E-04   -.91633    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96906e-11
Minuit parameter uncertainties:
  1  4.14358e-09
  2  0.223305
  3  0.225733
  4  0.178437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524694': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5753.6572662
delta logL = 2.06596616534

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  4.144e-09  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  7.995e+00  2.233e-01  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.033e+00  1.784e-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.052e+00  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.70
Ra Dec: 231.849 31.299
Photon Index (Free Index): 8.00 +/- 0.22
Photon Flux (Free Index): 1.37e-07 +/- 7.32e-08
Energy Flux (Free Index): 1.59e-05 +/- 8.46e-06

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/524694/cmap_HighResolution_248400001_248659201_4FGL_J1527.3+3117_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', energy_flux2='1.59e-05', dlogl='2.07e+00', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-12 03:15:28.182669', photon_index_error2='0.22', photon_index2='8.00', ts='0.27', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='8.46e-06', EG='1.17', time_epoch_completed='1631441728.18', return_code='0', job_id='524694', GAL2='1.03', EG2='1.05', return_code2='0', photon_flux_error2='7.32e-08', ts2='4.70', photon_index='2.57' WHERE bin_id='35' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:15:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 524694: <4FGL_J1527.3+3117_daily_bin35> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin35 231.849 31.2989 248400001 248659201 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 :                                   659.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

