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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin1017
RA = 231.849, Dec = 31.2989
tmin = 502934401, tmax = 503193601
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='530615', job_status='RUN', time_executed='2021-09-12 03:18:31.542978', time_epoch_executed='1631441911.54' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='1017'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530615

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530615/ft1_4FGL_J1527.3+3117_daily_bin1017.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530615/ft2_4FGL_J1527.3+3117_daily_bin1017.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530615/ft1_4FGL_J1527.3+3117_daily_bin1017.fits outfile=/scratch/kocevski/530615/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1017.fits ra=231.849 dec=31.2989 rad=12.0 tmin=502934401.0 tmax=503193601.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.56
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530615/ft2_4FGL_J1527.3+3117_daily_bin1017.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/530615/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1017.fits evtable="EVENTS" outfile="/scratch/kocevski/530615/ft1_filtered_4FGL_J1527.3+3117_daily_bin1017.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/530615/ft1_filtered_4FGL_J1527.3+3117_daily_bin1017.fits" evtable="EVENTS" scfile=/scratch/kocevski/530615/ft2_4FGL_J1527.3+3117_daily_bin1017.fits sctable="SC_DATA" outfile=/scratch/kocevski/530615/ltcube_502934401_503193601_4FGL_J1527.3+3117_daily_bin1017.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/530615/ft2_4FGL_J1527.3+3117_daily_bin1017.fits
.....................!
real 11.95
user 11.63
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530615/ft1_filtered_4FGL_J1527.3+3117_daily_bin1017.fits evtable="EVENTS" scfile=/scratch/kocevski/530615/ft2_4FGL_J1527.3+3117_daily_bin1017.fits sctable="SC_DATA" expcube=/scratch/kocevski/530615/ltcube_502934401_503193601_4FGL_J1527.3+3117_daily_bin1017.fits outfile=/scratch/kocevski/530615/expmap_502934401_503193601_4FGL_J1527.3+3117_daily_bin1017.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/530615/ltcube_502934401_503193601_4FGL_J1527.3+3117_daily_bin1017.fits
.....................!
real 190.43
user 185.36
sys 4.74

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/530615/ft1_filtered_4FGL_J1527.3+3117_daily_bin1017.fits scfile=/scratch/kocevski/530615/ft2_4FGL_J1527.3+3117_daily_bin1017.fits outfile=/scratch/kocevski/530615/cmap_502934401_503193601_4FGL_J1527.3+3117_daily_bin1017.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530615/ft1_filtered_4FGL_J1527.3+3117_daily_bin1017.fits scfile=/scratch/kocevski/530615/ft2_4FGL_J1527.3+3117_daily_bin1017.fits outfile=/scratch/kocevski/530615/cmap_HighResolution_502934401_503193601_4FGL_J1527.3+3117_daily_bin1017.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.60
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.1380       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.302       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.791       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.148       1.0000         .10000E-03   10000.    
     8 'norm      '    .70028       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.271       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2262       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7679       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11643E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1306       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91454       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=   6347.807     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2519 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.5218       -.36982E-06** at limit **
   2  norm          7.1380        5.0143       -.51068E-07    .28240E-04
   3  Prefactor     48.301        37.453       -.12926E-05    .39396E-04
   4  norm          .10000E-03    2.7714       -.58763E-07** at limit **
   5  Prefactor     29.795        17.142        .42081E-06    .65205E-04
   6  Prefactor     .10000E-03    6.2511       -.71946E-06** at limit **
   7  Prefactor     13.144        11.621        .10081E-06   -.10487E-04
   8  norm          .70034        1.4088       -.48157E-06   -.14616E-02
   9  Prefactor     .10000E-03    41.913       -.19801E-05** at limit **
  10  Prefactor     40.259        82.433       -.18110E-04    .75768E-04
  11  Prefactor     .10000E-03    3.8952       -.81403E-07** at limit **
  12  Prefactor     .10000E-03    7.0748        .45604E-06** at limit **
  13  norm          4.2252        1.6079       -.35259E-07    .67668E-03
  14  Prefactor     .10000E-03    30.630       -.40995E-05** at limit **
  15  Prefactor     .10000E-03    33.769        .60772E-05** at limit **
  16  Prefactor     .10000E-03    5.9825        .58103E-06** at limit **
  17  norm          .10000E-03    3.7283        .61614E-07** at limit **
  18  Prefactor     .10000E-03    1.7482       -.13764E-06** at limit **
  19  Prefactor     .10000E-03    7.1228        .54358E-06** at limit **
  20  Prefactor     3.7653        11.176       -.10362E-05   -.12021E-03
  21  Prefactor     .10000E-03    1.9174       -.35896E-06** at limit **
  22  Normalizat    1.1305        .18804        .85246E-06    .23495E-03
  23  Prefactor     .91474        .14273        .74979E-06    .18395E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.13798
  Prefactor  = 48.3011
  norm       = 0.0001
  Prefactor  = 29.7946
  Prefactor  = 0.0001
  Prefactor  = 13.1444
  norm       = 0.700344
  Prefactor  = 0.0001
  Prefactor  = 40.2589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.22515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.7653
  Prefactor  = 0.0001
  Normalizat = 1.13047
  Prefactor  = 0.914745
 **********
 **   18 **HESSE 
 **********

 FCN=   6347.807     FROM HESSE     STATUS=OK           364 CALLS     2883 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.7400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.1380        5.0136        .14528E-03   -1.5174    
   3  Prefactor     48.301        37.611        .57697E-04   -1.4317    
   4  norm          .10000E-03    2.7720        .12953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.795        17.111        .73405E-04   -1.4616    
   6  Prefactor     .10000E-03    6.2856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.144        11.614        .11047E-03   -1.4983    
   8  norm          .70034        1.3357        .12901E-02   -1.5541    
   9  Prefactor     .10000E-03    41.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.259        81.128        .63164E-04   -1.4438    
  11  Prefactor     .10000E-03    3.9122        .15355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.0793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2252        1.5984        .58013E-04   -1.5297    
  14  Prefactor     .10000E-03    31.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.7306        .15024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5340        .20252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7653        11.261        .20798E-03   -1.5320    
  21  Prefactor     .10000E-03    6.6242        .21141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1305        .21804        .25911E-03   -.88780    
  23  Prefactor     .91474        .16694        .22377E-03   -.95628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52124e-10
Minuit parameter uncertainties:
  1  2.18707e-06
  2  5.01393
  3  37.629
  4  1.69141e-07
  5  17.1136
  6  1.95498e-05
  7  11.6157
  8  1.33578
  9  8.89082e-05
  10  81.3512
  11  1.48896e-07
  12  1.18753e-05
  13  1.59845
  14  0.000152941
  15  0.000250964
  16  1.21769e-05
  17  2.66139e-06
  18  1.93963e-05
  19  1.2361e-05
  20  11.2676
  21  6.86087e-05
  22  0.218215
  23  0.167038
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.529e-04  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.147e-01  1.670e-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.130e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/530615/likelihoodResults_502934401_503193601_4FGL_J1527.3+3117_daily_bin1017.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) = 6347.80746075
delta logL = -0.000152939474901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6347.80728228
delta logL = 2.55330842265e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19104E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7115       1.0000          .0000       10.000    
     3 'Normalizat'    1.1305       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91469       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=   6345.901     FROM MIGRAD    STATUS=CONVERGED    156 CALLS      322 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61798E-02    .48751E-01    .10135E-02    .21008E-01
   2  Index         6.2639        1.9147        .84324E-01    .30365E-03
   3  Normalizat    1.0000        .49690E-01    .61589E-01   -.41180E-03
   4  Prefactor     .97765        .39301E-01    .45192E-01   -.83697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00617978
  Index      = 6.26387
  Normalizat = 1.00005
  Prefactor  = 0.977654
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.901     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      353 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61798E-02    .10707        .36478E-04   -1.5692    
   2  Index         6.2639        3.1068        .33610E-02    .25555    
   3  Normalizat    1.0000        .16997        .27243E-03   -.93029    
   4  Prefactor     .97765        .13147        .21707E-03   -.93478    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.00496e-10
Minuit parameter uncertainties:
  1  0.0510279
  2  3.37365
  3  0.170064
  4  0.131509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530615': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6345.90065975
delta logL = 1.90664806215

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  6.180e-03  5.103e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  6.264e+00  3.374e+00  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  9.777e-01  1.315e-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.000e+00  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.11
Ra Dec: 231.849 31.299
Photon Index (Free Index): 6.26 +/- 3.37
Photon Flux (Free Index): 1.27e-07 +/- 7.45e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.01e-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/530615/cmap_HighResolution_502934401_503193601_4FGL_J1527.3+3117_daily_bin1017.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.59e-03', comment='SUCCESS', energy_flux2='1.56e-05', dlogl='1.91e+00', photon_flux2='1.27e-07', job_status='DONE', time_completed='2021-09-12 03:29:41.904065', photon_index_error2='3.37', photon_index2='6.26', ts='-0.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.01e-05', EG='1.13', time_epoch_completed='1631442581.9', return_code='0', job_id='530615', GAL2='0.98', EG2='1.00', return_code2='102', photon_flux_error2='7.45e-08', ts2='4.11', photon_index='2.57' WHERE bin_id='1017' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:29:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 530615: <4FGL_J1527.3+3117_daily_bin1017> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin1017 231.849 31.2989 502934401 503193601 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 :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            835 sec.

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

