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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin1027
RA = 231.849, Dec = 31.2989
tmin = 505526401, tmax = 505785601
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='530629', job_status='RUN', time_executed='2021-09-12 03:19:38.825957', time_epoch_executed='1631441978.83' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530629

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530629/ft1_4FGL_J1527.3+3117_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530629/ft2_4FGL_J1527.3+3117_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530629/ft1_4FGL_J1527.3+3117_daily_bin1027.fits outfile=/scratch/kocevski/530629/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1027.fits ra=231.849 dec=31.2989 rad=12.0 tmin=505526401.0 tmax=505785601.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.50
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530629/ft2_4FGL_J1527.3+3117_daily_bin1027.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/530629/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1027.fits evtable="EVENTS" outfile="/scratch/kocevski/530629/ft1_filtered_4FGL_J1527.3+3117_daily_bin1027.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.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530629/ft1_filtered_4FGL_J1527.3+3117_daily_bin1027.fits" evtable="EVENTS" scfile=/scratch/kocevski/530629/ft2_4FGL_J1527.3+3117_daily_bin1027.fits sctable="SC_DATA" outfile=/scratch/kocevski/530629/ltcube_505526401_505785601_4FGL_J1527.3+3117_daily_bin1027.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/530629/ft2_4FGL_J1527.3+3117_daily_bin1027.fits
.....................!
real 12.42
user 12.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530629/ft1_filtered_4FGL_J1527.3+3117_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/530629/ft2_4FGL_J1527.3+3117_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/530629/ltcube_505526401_505785601_4FGL_J1527.3+3117_daily_bin1027.fits outfile=/scratch/kocevski/530629/expmap_505526401_505785601_4FGL_J1527.3+3117_daily_bin1027.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/530629/ltcube_505526401_505785601_4FGL_J1527.3+3117_daily_bin1027.fits
.....................!
real 190.84
user 186.12
sys 4.35

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/530629/ft1_filtered_4FGL_J1527.3+3117_daily_bin1027.fits scfile=/scratch/kocevski/530629/ft2_4FGL_J1527.3+3117_daily_bin1027.fits outfile=/scratch/kocevski/530629/cmap_505526401_505785601_4FGL_J1527.3+3117_daily_bin1027.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530629/ft1_filtered_4FGL_J1527.3+3117_daily_bin1027.fits scfile=/scratch/kocevski/530629/ft2_4FGL_J1527.3+3117_daily_bin1027.fits outfile=/scratch/kocevski/530629/cmap_HighResolution_505526401_505785601_4FGL_J1527.3+3117_daily_bin1027.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/530629/ft1_filtered_4FGL_J1527.3+3117_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/530629/ft2_4FGL_J1527.3+3117_daily_bin1027.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530629/Model_4FGL_J1527.3+3117_daily_bin1027.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/530629/ft1_filtered_4FGL_J1527.3+3117_daily_bin1027.fits.....................!
real 49.09
user 47.84
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1461       1.0000         .10000E-03   10000.    
     2 'norm      '    9.2445       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.2745       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.116       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2474       1.0000         .10000E-03   10000.    
     8 'norm      '    .55336       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9078       1.0000         .10000E-03   10000.    
    10 'Prefactor '    67.601       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3363       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.462       1.0000         .10000E-03   10000.    
    13 'norm      '    3.7439       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.081       1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.466       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .63924       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9035       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3785       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1010       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70055       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=   6430.503     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2558 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1468        8.2433        .54554E-06    .10201E-04
   2  norm          9.2445        5.1525        .24019E-07    .19385E-05
   3  Prefactor     .10000E-03    13.405        .44828E-07** at limit **
   4  norm          7.2748        7.4420       -.62122E-07    .13769E-04
   5  Prefactor     21.115        18.017        .35029E-07    .27574E-04
   6  Prefactor     .10000E-03    4.2711       -.27525E-07** at limit **
   7  Prefactor     3.2471        7.3451        .27227E-06   -.11418E-05
   8  norm          .55338        1.0778       -.43466E-06   -.12102E-02
   9  Prefactor     2.8739        289.34        .16247E-04   -.11755E-04
  10  Prefactor     67.601        56.811        .74044E-07    .80713E-06
  11  Prefactor     9.3364        8.3530        .50784E-06   -.12840E-04
  12  Prefactor     10.461        18.685        .83158E-08    .17143E-04
  13  norm          3.7437        1.5948       -.21373E-07    .51925E-04
  14  Prefactor     13.082        11.101        .42187E-07    .95278E-05
  15  Prefactor     49.465        31.580        .54846E-07   -.11106E-06
  16  Prefactor     .62550        12.886       -.15919E-05    .17701E-03
  17  norm          .10000E-03    8.5294       -.67747E-07** at limit **
  18  Prefactor     .10000E-03    .63561        .16912E-07** at limit **
  19  Prefactor     .10000E-03    42.836        .11016E-07** at limit **
  20  Prefactor     3.9033        7.7103        .19955E-05   -.28807E-04
  21  Prefactor     3.3785        2.7077        .26335E-07    .10099E-04
  22  Normalizat    1.1010        .17755        .51090E-06    .94429E-04
  23  Prefactor     .70058        .13222       -.11061E-05    .40907E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.14683
  norm       = 9.24453
  Prefactor  = 0.0001
  norm       = 7.27478
  Prefactor  = 21.1151
  Prefactor  = 0.0001
  Prefactor  = 3.24708
  norm       = 0.553378
  Prefactor  = 2.87391
  Prefactor  = 67.6009
  Prefactor  = 9.33638
  Prefactor  = 10.4608
  norm       = 3.74373
  Prefactor  = 13.0823
  Prefactor  = 49.4654
  Prefactor  = 0.625499
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.90335
  Prefactor  = 3.37849
  Normalizat = 1.101
  Prefactor  = 0.700577
 **********
 **   18 **HESSE 
 **********

 FCN=   6430.503     FROM HESSE     STATUS=OK           382 CALLS     2940 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1468        8.2893        .75028E-03   -1.5173    
   2  norm          9.2445        5.1520        .13178E-03   -1.5100    
   3  Prefactor     .10000E-03    13.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.2748        7.4380        .14871E-03   -1.5168    
   5  Prefactor     21.115        17.992        .87164E-04   -1.4789    
   6  Prefactor     .10000E-03    4.3013        .16154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2471        7.3337        .22476E-03   -1.5348    
   8  norm          .55338        .96756        .11321E-02   -1.5559    
   9  Prefactor     2.8739        292.65        .23827E-03   -1.5369    
  10  Prefactor     67.601        56.816        .48817E-04   -1.4062    
  11  Prefactor     9.3364        8.3435        .65580E-03   -1.5097    
  12  Prefactor     10.461        18.795        .12388E-03   -1.5061    
  13  norm          3.7437        1.6053        .53739E-04   -1.5321    
  14  Prefactor     13.082        11.184        .11075E-03   -1.4984    
  15  Prefactor     49.465        31.575        .57017E-04   -1.4300    
  16  Prefactor     .62550        87.020        .51877E-02   -1.5550    
  17  norm          .10000E-03    8.5621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .64847        .62408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    43.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9033        7.5955        .10210E-02   -1.5313    
  21  Prefactor     3.3785        2.7112        .11371E-03   -1.5340    
  22  Normalizat    1.1010        .20248        .23317E-03   -.89720    
  23  Prefactor     .70058        .14890        .22776E-03   -1.0350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77227e-09
Minuit parameter uncertainties:
  1  8.2906
  2  5.15227
  3  2.73768e-06
  4  7.43894
  5  17.9963
  6  4.24308e-06
  7  7.33569
  8  0.967586
  9  58.2957
  10  56.8619
  11  8.34454
  12  18.8055
  13  1.60531
  14  11.1855
  15  31.5856
  16  14.7763
  17  1.02094e-05
  18  4.20737e-07
  19  3.60642e-05
  20  7.59737
  21  2.71135
  22  0.202627
  23  0.148983
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.308e+01  1.119e+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:  7.006e-01  1.490e-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  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.57
Ra Dec: 231.849 31.299
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 6.38e-08 +/- 5.45e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/530629/likelihoodResults_505526401_505785601_4FGL_J1527.3+3117_daily_bin1027.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) = 6430.49136954
delta logL = 0.0112327526076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6430.47048836
delta logL = 0.0321139329108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.276       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7414       1.0000          .0000       10.000    
     3 'Normalizat'    1.0934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70473       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=   6430.470     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      215 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.247        153.43        .31248E-02    .39616E-03
   2  Index         2.7429        3.1496        .10411        .23267E-03
   3  Normalizat    1.0935        .70165E-01    .38277E-01    .62328E-04
   4  Prefactor     .70456        .48797E-01    .42464E-01    .21402E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2468
  Index      = 2.74288
  Normalizat = 1.09354
  Prefactor  = 0.704556
 **********
 **   18 **HESSE 
 **********

 FCN=   6430.470     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.247        17.026        .12499E-03   -1.5068    
   2  Index         2.7429        .90083        .52598E-02   -.46836    
   3  Normalizat    1.0935        .18394        .23380E-03   -.89960    
   4  Prefactor     .70456        .14419        .22719E-03   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77018e-10
Minuit parameter uncertainties:
  1  17.0339
  2  0.907065
  3  0.18405
  4  0.144271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530629': 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) = 6430.4704848
delta logL = 0.0321174909795

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.025e+01  1.703e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.743e+00  9.071e-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:  7.046e-01  1.443e-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.094e+00  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 231.849 31.299
Photon Index (Free Index): 2.74 +/- 0.91
Photon Flux (Free Index): 7.05e-08 +/- 5.31e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.27e-05

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/530629/cmap_HighResolution_505526401_505785601_4FGL_J1527.3+3117_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='6.38e-08', energy_flux2='1.64e-05', photon_flux_error='5.45e-08', dlogl='3.21e-02', energy_flux='1.72e-05', photon_flux2='7.05e-08', job_status='DONE', time_completed='2021-09-12 03:30:59.613562', photon_index_error2='0.91', photon_index2='2.74', ts='2.57', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.27e-05', EG='1.10', time_epoch_completed='1631442659.61', return_code='0', job_id='530629', GAL2='0.70', EG2='1.09', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='5.31e-08', ts2='2.75', photon_index='2.57' WHERE bin_id='1027' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:30:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 530629: <4FGL_J1527.3+3117_daily_bin1027> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin1027 231.849 31.2989 505526401 505785601 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 :                                   676.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            911 sec.

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

