/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 1 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 = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1527.3+3117_daily_bin269
RA = 231.849, Dec = 31.2989
tmin = 309052801, tmax = 309312001
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='525086', job_status='RUN', time_executed='2021-09-12 03:01:06.444774', time_epoch_executed='1631440866.44' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/525086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/525086/ft1_4FGL_J1527.3+3117_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/525086/ft2_4FGL_J1527.3+3117_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/525086/ft1_4FGL_J1527.3+3117_daily_bin269.fits outfile=/scratch/kocevski/525086/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin269.fits ra=231.849 dec=31.2989 rad=12.0 tmin=309052801.0 tmax=309312001.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.39
user 3.14
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/525086/ft1_filtered_4FGL_J1527.3+3117_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/525086/ft2_4FGL_J1527.3+3117_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/525086/ltcube_309052801_309312001_4FGL_J1527.3+3117_daily_bin269.fits outfile=/scratch/kocevski/525086/expmap_309052801_309312001_4FGL_J1527.3+3117_daily_bin269.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/525086/ltcube_309052801_309312001_4FGL_J1527.3+3117_daily_bin269.fits
.....................!
real 192.44
user 186.34
sys 5.26

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/525086/ft1_filtered_4FGL_J1527.3+3117_daily_bin269.fits scfile=/scratch/kocevski/525086/ft2_4FGL_J1527.3+3117_daily_bin269.fits outfile=/scratch/kocevski/525086/cmap_309052801_309312001_4FGL_J1527.3+3117_daily_bin269.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/525086/ft1_filtered_4FGL_J1527.3+3117_daily_bin269.fits scfile=/scratch/kocevski/525086/ft2_4FGL_J1527.3+3117_daily_bin269.fits outfile=/scratch/kocevski/525086/cmap_HighResolution_309052801_309312001_4FGL_J1527.3+3117_daily_bin269.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6040       1.0000         .10000E-03   10000.    
     2 'norm      '    .56394       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.981       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.146       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8651       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2631       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1670       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.990       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9032       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.832       1.0000         .10000E-03   10000.    
    13 'norm      '    7.5791       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.662       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.509       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.901       1.0000         .10000E-03   10000.    
    17 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5011       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0275       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3393       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0132       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0040       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=   6532.648     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2533 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5966        9.4124        .67698E-05   -.33737E-03
   2  norm          .56409        6.1664        .32957E-05   -.20446E-03
   3  Prefactor     15.885        32.017       -.31806E-05   -.11306E-03
   4  norm          .10000E-03    3.3007       -.11489E-06** at limit **
   5  Prefactor     10.142        10.593       -.33913E-06    .17855E-04
   6  Prefactor     3.8639        6.1848       -.25105E-06   -.84615E-04
   7  Prefactor     2.2654        7.2190        .44106E-06   -.60034E-04
   8  norm          2.1665        1.4306       -.15108E-07   -.75480E-04
   9  Prefactor     .10000E-03    17.015       -.16141E-06** at limit **
  10  Prefactor     30.915        82.358       -.11856E-04   -.12751E-03
  11  Prefactor     4.9009        10.450        .64249E-06    .99497E-05
  12  Prefactor     11.806        24.133        .15178E-05    .63157E-04
  13  norm          7.5782        2.1660       -.11001E-06    .28250E-04
  14  Prefactor     23.656        13.860        .84048E-06    .21701E-03
  15  Prefactor     10.507        25.264        .29138E-06    .23366E-04
  16  Prefactor     14.908        14.814       -.24339E-05   -.36917E-03
  17  norm          .10000E-03    7.9315       -.13989E-05** at limit **
  18  Prefactor     2.5005        2.5891        .15422E-06   -.46037E-04
  19  Prefactor     .10000E-03    13.672        .36353E-06** at limit **
  20  Prefactor     9.0280        11.069       -.70186E-08   -.41459E-04
  21  Prefactor     2.3385        2.7116        .18866E-06   -.37500E-04
  22  Normalizat    1.0140        .20322       -.63092E-06   -.64711E-04
  23  Prefactor     1.0034        .15254       -.18818E-06   -.81584E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.59662
  norm       = 0.564088
  Prefactor  = 15.8852
  norm       = 0.0001
  Prefactor  = 10.1425
  Prefactor  = 3.86395
  Prefactor  = 2.26536
  norm       = 2.16652
  Prefactor  = 0.0001
  Prefactor  = 30.9149
  Prefactor  = 4.90087
  Prefactor  = 11.8064
  norm       = 7.57817
  Prefactor  = 23.6562
  Prefactor  = 10.5066
  Prefactor  = 14.9081
  norm       = 0.0001
  Prefactor  = 2.5005
  Prefactor  = 0.0001
  Prefactor  = 9.02805
  Prefactor  = 2.33849
  Normalizat = 1.01398
  Prefactor  = 1.00343
 **********
 **   18 **HESSE 
 **********

 FCN=   6532.648     FROM HESSE     STATUS=OK           380 CALLS     2913 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5966        9.6710        .93794E-03   -1.5279    
   2  norm          .56409        6.4294        .38912E-03   -1.5558    
   3  Prefactor     15.885        32.412        .10019E-03   -1.4911    
   4  norm          .10000E-03    3.3029        .14342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.142        10.596        .12580E-03   -1.5071    
   6  Prefactor     3.8639        6.1703        .20526E-03   -1.5315    
   7  Prefactor     2.2654        7.1980        .27305E-03   -1.5407    
   8  norm          2.1665        1.4248        .73624E-04   -1.5414    
   9  Prefactor     .10000E-03    17.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.915        84.939        .71975E-04   -1.4595    
  11  Prefactor     4.9009        10.433        .18165E-03   -1.5265    
  12  Prefactor     11.806        24.256        .11646E-03   -1.5021    
  13  norm          7.5782        2.1798        .53279E-04   -1.5157    
  14  Prefactor     23.656        13.952        .82347E-04   -1.4735    
  15  Prefactor     10.507        25.244        .12360E-03   -1.5060    
  16  Prefactor     14.908        15.067        .10376E-03   -1.4936    
  17  norm          .10000E-03    7.9242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.5005        2.5784        .12575E-03   -1.5392    
  19  Prefactor     .10000E-03    13.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.0280        11.093        .13340E-03   -1.5107    
  21  Prefactor     2.3385        2.7032        .13773E-03   -1.5402    
  22  Normalizat    1.0140        .23490        .27781E-03   -.92564    
  23  Prefactor     1.0034        .17595        .22567E-03   -.92615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12939e-09
Minuit parameter uncertainties:
  1  9.67423
  2  3.80899
  3  32.4475
  4  1.10765e-05
  5  10.598
  6  6.1713
  7  7.20073
  8  1.42487
  9  1.84693e-05
  10  85.2742
  11  10.4367
  12  24.2757
  13  2.17978
  14  13.9539
  15  25.27
  16  15.0709
  17  8.97041e-05
  18  2.5785
  19  1.20847e-05
  20  11.0953
  21  2.70338
  22  0.235138
  23  0.176055
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  2.366e+01  1.395e+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:  1.003e+00  1.761e-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.014e+00  2.351e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.47
Ra Dec: 231.849 31.299
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.15e-07 +/- 6.80e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 1.84e-05

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) = 6532.48725472
delta logL = 0.160493151135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6532.47857515
delta logL = 0.169172729733

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.153       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2633       1.0000          .0000       10.000    
     3 'Normalizat'    1.0409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99047       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=   6532.479     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      271 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.175        359.77        .17666E-02    .30420E-04
   2  Index         2.2643        6.1303        .11512        .13535E-03
   3  Normalizat    1.0410        .15848        .62194E-01    .49088E-04
   4  Prefactor     .99032        .71567E-01    .46148E-01    .44261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.1747
  Index      = 2.26431
  Normalizat = 1.04101
  Prefactor  = 0.990318
 **********
 **   18 **HESSE 
 **********

 FCN=   6532.479     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.175        21.654        .70665E-04   -1.4573    
   2  Index         2.2643        .53425        .62791E-02   -.57894    
   3  Normalizat    1.0410        .21499        .27508E-03   -.91669    
   4  Prefactor     .99032        .17007        .22701E-03   -.93053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52216e-12
Minuit parameter uncertainties:
  1  21.6591
  2  0.535713
  3  0.21517
  4  0.170166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/525086': 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) = 6532.47856941
delta logL = 0.169178463631

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  3.217e+01  2.166e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.264e+00  5.357e-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:  9.903e-01  1.702e-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.041e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.10
Ra Dec: 231.849 31.299
Photon Index (Free Index): 2.26 +/- 0.54
Photon Flux (Free Index): 8.85e-08 +/- 6.87e-08
Energy Flux (Free Index): 3.55e-05 +/- 2.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/525086/cmap_HighResolution_309052801_309312001_4FGL_J1527.3+3117_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-07', energy_flux2='3.55e-05', photon_flux_error='6.80e-08', dlogl='1.69e-01', energy_flux='3.12e-05', photon_flux2='8.85e-08', job_status='DONE', time_completed='2021-09-12 03:11:32.596119', photon_index_error2='0.54', photon_index2='2.26', ts='6.47', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.25e-05', EG='1.01', time_epoch_completed='1631441492.6', return_code='0', job_id='525086', GAL2='0.99', EG2='1.04', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='6.87e-08', ts2='7.10', photon_index='2.57' WHERE bin_id='269' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:11:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 525086: <4FGL_J1527.3+3117_daily_bin269> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin269 231.849 31.2989 309052801 309312001 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 :                                   620.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            638 sec.

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

