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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin572
RA = 231.849, Dec = 31.2989
tmin = 387590401, tmax = 387849601
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='528240', job_status='RUN', time_executed='2021-09-12 03:10:34.930047', time_epoch_executed='1631441434.93' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='572'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528240

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528240/ft1_4FGL_J1527.3+3117_daily_bin572.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528240/ft2_4FGL_J1527.3+3117_daily_bin572.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528240/ft1_4FGL_J1527.3+3117_daily_bin572.fits outfile=/scratch/kocevski/528240/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin572.fits ra=231.849 dec=31.2989 rad=12.0 tmin=387590401.0 tmax=387849601.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.32
user 3.08
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/528240/ft1_filtered_4FGL_J1527.3+3117_daily_bin572.fits" evtable="EVENTS" scfile=/scratch/kocevski/528240/ft2_4FGL_J1527.3+3117_daily_bin572.fits sctable="SC_DATA" outfile=/scratch/kocevski/528240/ltcube_387590401_387849601_4FGL_J1527.3+3117_daily_bin572.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/528240/ft2_4FGL_J1527.3+3117_daily_bin572.fits
.....................!
real 13.27
user 12.92
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528240/ft1_filtered_4FGL_J1527.3+3117_daily_bin572.fits evtable="EVENTS" scfile=/scratch/kocevski/528240/ft2_4FGL_J1527.3+3117_daily_bin572.fits sctable="SC_DATA" expcube=/scratch/kocevski/528240/ltcube_387590401_387849601_4FGL_J1527.3+3117_daily_bin572.fits outfile=/scratch/kocevski/528240/expmap_387590401_387849601_4FGL_J1527.3+3117_daily_bin572.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/528240/ltcube_387590401_387849601_4FGL_J1527.3+3117_daily_bin572.fits
.....................!
real 191.28
user 185.75
sys 4.90

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/528240/ft1_filtered_4FGL_J1527.3+3117_daily_bin572.fits scfile=/scratch/kocevski/528240/ft2_4FGL_J1527.3+3117_daily_bin572.fits outfile=/scratch/kocevski/528240/cmap_387590401_387849601_4FGL_J1527.3+3117_daily_bin572.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528240/ft1_filtered_4FGL_J1527.3+3117_daily_bin572.fits scfile=/scratch/kocevski/528240/ft2_4FGL_J1527.3+3117_daily_bin572.fits outfile=/scratch/kocevski/528240/cmap_HighResolution_387590401_387849601_4FGL_J1527.3+3117_daily_bin572.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.55
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.6852       1.0000         .10000E-03   10000.    
     2 'norm      '    13.813       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.973       1.0000         .10000E-03   10000.    
     4 'norm      '    7.9678       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1750       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29990       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5432       1.0000         .10000E-03   10000.    
     8 'norm      '    .34294       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2304       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.709       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    30.370       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .91598       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.220       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6595       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0823       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87701       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=   9446.995     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     3242 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.6853        4.1690       -.38896E-06   -.60192E-03
   2  norm          13.813        5.1807        .32094E-07    .13145E-05
   3  Prefactor     20.979        26.664        .12366E-05    .12625E-03
   4  norm          7.9675        6.7075       -.34792E-07   -.83450E-04
   5  Prefactor     7.1744        10.471       -.10832E-06   -.61696E-04
   6  Prefactor     .31435        5.0616       -.21282E-06   -.79630E-04
   7  Prefactor     7.5434        4.8912        .46312E-06    .60441E-03
   8  norm          .34285        1.1841        .30410E-06   -.41396E-03
   9  Prefactor     .10000E-03    41.805       -.52538E-06** at limit **
  10  Prefactor     .10000E-03    24.613        .74916E-06** at limit **
  11  Prefactor     .10000E-03    13.557       -.71417E-06** at limit **
  12  Prefactor     .10000E-03    3.4176        .86293E-08** at limit **
  13  norm          2.2304        1.1314       -.16041E-06   -.11236E-03
  14  Prefactor     10.710        7.9992        .12672E-05   -.53994E-03
  15  Prefactor     .10000E-03    11.088        .51468E-06** at limit **
  16  Prefactor     .10000E-03    9.5905       -.18853E-06** at limit **
  17  norm          30.373        13.704        .45458E-07   -.87492E-05
  18  Prefactor     .91600        1.6468        .31159E-06   -.21430E-03
  19  Prefactor     22.221        17.661        .12544E-06    .71812E-05
  20  Prefactor     .10000E-03    3.2246        .90999E-08** at limit **
  21  Prefactor     2.6596        2.0962        .61483E-07   -.41083E-04
  22  Normalizat    1.0821        .15060       -.75307E-06   -.81528E-05
  23  Prefactor     .87710        .11209        .49195E-08   -.75224E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.68532
  norm       = 13.8132
  Prefactor  = 20.9789
  norm       = 7.96751
  Prefactor  = 7.17444
  Prefactor  = 0.314348
  Prefactor  = 7.54338
  norm       = 0.342853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.23044
  Prefactor  = 10.7099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.3731
  Prefactor  = 0.916001
  Prefactor  = 22.2211
  Prefactor  = 0.0001
  Prefactor  = 2.65965
  Normalizat = 1.08213
  Prefactor  = 0.877096
 **********
 **   18 **HESSE 
 **********

 FCN=   9446.995     FROM HESSE     STATUS=OK           380 CALLS     3622 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.6853        4.2773        .15519E-03   -1.5191    
   2  norm          13.813        5.1809        .10777E-03   -1.4964    
   3  Prefactor     20.979        27.158        .87460E-04   -1.4792    
   4  norm          7.9675        6.7043        .14204E-03   -1.5143    
   5  Prefactor     7.1744        10.411        .14975E-03   -1.5172    
   6  Prefactor     .31435        17.770        .35363E-02   -1.5596    
   7  Prefactor     7.5434        5.0449        .14602E-03   -1.5159    
   8  norm          .34285        1.4739        .15276E-02   -1.5591    
   9  Prefactor     .10000E-03    41.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4209        .17548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2304        1.1385        .62260E-04   -1.5409    
  14  Prefactor     10.710        8.2970        .61216E-03   -1.5053    
  15  Prefactor     .10000E-03    11.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          30.373        13.716        .72703E-04   -1.4605    
  18  Prefactor     .91600        1.6063        .16004E-03   -1.5517    
  19  Prefactor     22.221        17.664        .84973E-04   -1.4765    
  20  Prefactor     .10000E-03    3.2452        .17044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.6596        2.0947        .12070E-03   -1.5382    
  22  Normalizat    1.0821        .17608        .24806E-03   -.90328    
  23  Prefactor     .87710        .13195        .22150E-03   -.96946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05754e-08
Minuit parameter uncertainties:
  1  4.27752
  2  5.18108
  3  27.1735
  4  6.70491
  5  10.4136
  6  4.7277
  7  5.0452
  8  1.4216
  9  0.000137089
  10  0.000166483
  11  9.0588e-05
  12  1.33055e-06
  13  1.13855
  14  8.29791
  15  7.95791e-05
  16  2.52244e-05
  17  13.7172
  18  1.6064
  19  17.6678
  20  1.58704e-06
  21  2.09474
  22  0.176173
  23  0.131998
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.071e+01  8.298e+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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  8.771e-01  1.320e-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.082e+00  1.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.40
Ra Dec: 231.849 31.299
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 5.22e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/528240/likelihoodResults_387590401_387849601_4FGL_J1527.3+3117_daily_bin572.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) = 9446.9950937
delta logL = 7.6324075053e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9446.99495266
delta logL = 0.000217357744987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.516       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5829       1.0000          .0000       10.000    
     3 'Normalizat'    1.0814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87739       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9446.995     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      275 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.512        14.673        .61778E-03   -.32609E-04
   2  Index         2.5826        .77469        .64552E-02    .34498E-04
   3  Normalizat    1.0816        .16079        .24811E-03    .74923E-03
   4  Prefactor     .87738        .12915        .22146E-03    .64073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5116
  Index      = 2.58264
  Normalizat = 1.08164
  Prefactor  = 0.877381
 **********
 **   18 **HESSE 
 **********

 FCN=   9446.995     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.512        11.884        .24711E-04   -1.5059    
   2  Index         2.5826        .62778        .25821E-03   -.50462    
   3  Normalizat    1.0816        .16031        .49622E-04   -.90344    
   4  Prefactor     .87738        .12886        .44293E-04   -.96936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27888e-10
Minuit parameter uncertainties:
  1  11.8868
  2  0.629956
  3  0.160379
  4  0.128902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528240': 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) = 9446.99494796
delta logL = 0.000222063406909

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.051e+01  1.189e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.583e+00  6.300e-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:  8.774e-01  1.289e-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.082e+00  1.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.45
Ra Dec: 231.849 31.299
Photon Index (Free Index): 2.58 +/- 0.63
Photon Flux (Free Index): 5.26e-08 +/- 3.94e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.03e-05

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/528240/cmap_HighResolution_387590401_387849601_4FGL_J1527.3+3117_daily_bin572.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-03', comment='SUCCESS', photon_flux='5.22e-08', energy_flux2='1.40e-05', photon_flux_error='4.04e-08', dlogl='2.22e-04', energy_flux='1.41e-05', photon_flux2='5.26e-08', job_status='DONE', time_completed='2021-09-12 03:26:14.657362', photon_index_error2='0.63', photon_index2='2.58', ts='3.40', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.03e-05', EG='1.08', time_epoch_completed='1631442374.66', return_code='0', job_id='528240', GAL2='0.88', EG2='1.08', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.94e-08', ts2='3.45', photon_index='2.57' WHERE bin_id='572' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:26:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 528240: <4FGL_J1527.3+3117_daily_bin572> in cluster <slac> Done

Job <4FGL_J1527.3+3117_daily_bin572> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 12 03:10:20 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 03:10:22 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:10:22 2021
Terminated at Sun Sep 12 03:26:15 2021
Results reported at Sun Sep 12 03:26:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin572 231.849 31.2989 387590401 387849601 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 :                                   935.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            955 sec.

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

