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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin526
RA = 231.849, Dec = 31.2989
tmin = 375667201, tmax = 375926401
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='528160', job_status='RUN', time_executed='2021-09-12 03:10:31.393705', time_epoch_executed='1631441431.39' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528160/ft1_4FGL_J1527.3+3117_daily_bin526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528160/ft2_4FGL_J1527.3+3117_daily_bin526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528160/ft1_4FGL_J1527.3+3117_daily_bin526.fits outfile=/scratch/kocevski/528160/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin526.fits ra=231.849 dec=31.2989 rad=12.0 tmin=375667201.0 tmax=375926401.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 4.76
user 4.52
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528160/ft1_filtered_4FGL_J1527.3+3117_daily_bin526.fits evtable="EVENTS" scfile=/scratch/kocevski/528160/ft2_4FGL_J1527.3+3117_daily_bin526.fits sctable="SC_DATA" expcube=/scratch/kocevski/528160/ltcube_375667201_375926401_4FGL_J1527.3+3117_daily_bin526.fits outfile=/scratch/kocevski/528160/expmap_375667201_375926401_4FGL_J1527.3+3117_daily_bin526.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/528160/ltcube_375667201_375926401_4FGL_J1527.3+3117_daily_bin526.fits
.....................!
real 191.25
user 186.07
sys 4.78

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/528160/ft1_filtered_4FGL_J1527.3+3117_daily_bin526.fits scfile=/scratch/kocevski/528160/ft2_4FGL_J1527.3+3117_daily_bin526.fits outfile=/scratch/kocevski/528160/cmap_375667201_375926401_4FGL_J1527.3+3117_daily_bin526.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528160/ft1_filtered_4FGL_J1527.3+3117_daily_bin526.fits scfile=/scratch/kocevski/528160/ft2_4FGL_J1527.3+3117_daily_bin526.fits outfile=/scratch/kocevski/528160/cmap_HighResolution_375667201_375926401_4FGL_J1527.3+3117_daily_bin526.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2918       1.0000         .10000E-03   10000.    
     3 'Prefactor '    91.950       1.0000         .10000E-03   10000.    
     4 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.488       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10972E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12145E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2630       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32347E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0468       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .37749E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2489       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93115       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=   6729.756     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2666 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9059        .90712E-02** at limit **
   2  norm          2.2919        3.0530        .67784E-02    .59954E-04
   3  Prefactor     91.943        47.239        .10477E-02   -.84676E-03
   4  norm          .10000E-03    3.6237        .90712E-02** at limit **
   5  Prefactor     27.493        17.463        .19103E-02   -.36361E-02
   6  Prefactor     .10000E-03    7.2909        .90712E-02** at limit **
   7  Prefactor     .10000E-03    8.7424        .90712E-02** at limit **
   8  norm          .10000E-03    .75677        .42352E-01** at limit **
   9  Prefactor     .10001E-03    19.227        .90712E-02** at limit **
  10  Prefactor     .10003E-03    161.30        .90712E-02** at limit **
  11  Prefactor     .10000E-03    9.4248        .90712E-02** at limit **
  12  Prefactor     .10000E-03    39.347        .90712E-02** at limit **
  13  norm          2.2589        1.5502        .68264E-02    .29778E-02
  14  Prefactor     .67852E-01    6.9188        .91836E-01    .12398E-03
  15  Prefactor     .10002E-03    22.568        .90712E-02** at limit **
  16  Prefactor     5.0433        14.305        .44747E-02    .11865E-03
  17  norm          .10000E-03    5.4381        .90712E-02** at limit **
  18  Prefactor     .10000E-03    1.6370        .36948E-01** at limit **
  19  Prefactor     .10000E-03    16.580        .90712E-02** at limit **
  20  Prefactor     .10000E-03    9.9302        .90712E-02** at limit **
  21  Prefactor     .10000E-03    1.7929        .60411E-01** at limit **
  22  Normalizat    1.2490        .19605        .58805E-01    .59449E-03
  23  Prefactor     .93111        .14286        .45401E-01    .62386E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.2919
  Prefactor  = 91.9431
  norm       = 0.0001
  Prefactor  = 27.4929
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100031
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.25885
  Prefactor  = 0.0678517
  Prefactor  = 0.000100017
  Prefactor  = 5.04329
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.249
  Prefactor  = 0.931107
 **********
 **   18 **HESSE 
 **********

 FCN=   6729.756     FROM HESSE     STATUS=OK           368 CALLS     3034 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9130        .13656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2919        3.0402        .16114E-03   -1.5405    
   3  Prefactor     91.943        47.416        .41908E-04   -1.3787    
   4  norm          .10000E-03    3.6303        .15250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.493        17.463        .76411E-04   -1.4659    
   6  Prefactor     .10000E-03    7.4305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.7051        .13590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    19.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    162.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.6940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2589        1.6577        .69823E-04   -1.5407    
  14  Prefactor     .67852E-01    15.191        .57997E-01   -1.5656    
  15  Prefactor     .10002E-03    22.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0433        14.285        .17899E-03   -1.5259    
  17  norm          .10000E-03    5.4405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.0302        .20122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.8225        .21201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2490        .23294        .26006E-03   -.85102    
  23  Prefactor     .93111        .17127        .22770E-03   -.95062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98321e-08
Minuit parameter uncertainties:
  1  1.44008e-05
  2  3.04043
  3  47.4352
  4  2.94115e-05
  5  17.4659
  6  4.15543e-05
  7  0.000136559
  8  3.60908e-05
  9  0.000905158
  10  0.00448419
  11  0.000162732
  12  0.000243861
  13  1.6577
  14  2.02954
  15  0.00125814
  16  14.2945
  17  2.68047e-05
  18  1.36984e-05
  19  0.000426616
  20  0.000135817
  21  0.000167286
  22  0.233136
  23  0.171373
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  6.785e-02  2.030e+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:  9.311e-01  1.714e-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.249e+00  2.331e-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.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/528160/likelihoodResults_375667201_375926401_4FGL_J1527.3+3117_daily_bin526.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) = 6729.75622966
delta logL = 1.77625770448e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6729.19788339
delta logL = 0.558348043465

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27781E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.4327       1.0000          .0000       10.000    
     3 'Normalizat'    1.1526       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97938       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=   6729.198     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      290 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26975E-02    .34232E-01    .99551E-03    .22876E-01
   2  Index         6.4455        2.2172        .10008        .19067E-03
   3  Normalizat    1.1528        .37637E-01    .60832E-01    .26941E-04
   4  Prefactor     .97957        .29102E-01    .46009E-01    .46348E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00269751
  Index      = 6.44546
  Normalizat = 1.15279
  Prefactor  = 0.979573
 **********
 **   18 **HESSE 
 **********

 FCN=   6729.198     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      323 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26975E-02    .12262        .40157E-05   -1.5698    
   2  Index         6.4455        7.5930        .52268E-02    .29328    
   3  Normalizat    1.1528        .18164        .26906E-03   -.88075    
   4  Prefactor     .97957        .13602        .22267E-03   -.93414    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.50337e-07
Minuit parameter uncertainties:
  1  0.0356942
  2  5.44933
  3  0.181736
  4  0.136069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528160': 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) = 6729.19786768
delta logL = 0.558363753506

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  2.698e-03  3.569e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  6.445e+00  5.449e+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.796e-01  1.361e-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.153e+00  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 231.849 31.299
Photon Index (Free Index): 6.45 +/- 5.45
Photon Flux (Free Index): 8.58e-08 +/- 8.09e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.05e-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/528160/cmap_HighResolution_375667201_375926401_4FGL_J1527.3+3117_daily_bin526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.13e-03', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='5.58e-01', photon_flux2='8.58e-08', job_status='DONE', time_completed='2021-09-12 03:22:20.996918', photon_index_error2='5.45', photon_index2='6.45', ts='0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.05e-05', EG='1.25', time_epoch_completed='1631442141.0', return_code='0', job_id='528160', GAL2='0.98', EG2='1.15', return_code2='102', photon_flux_error2='8.09e-08', ts2='1.26', photon_index='2.57' WHERE bin_id='526' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:22:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 528160: <4FGL_J1527.3+3117_daily_bin526> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin526 231.849 31.2989 375667201 375926401 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 :                                   704.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            726 sec.

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

