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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin1087
RA = 231.849, Dec = 31.2989
tmin = 521078401, tmax = 521337601
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='530716', job_status='RUN', time_executed='2021-09-12 03:18:57.006569', time_epoch_executed='1631441937.01' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530716

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530716/ft1_4FGL_J1527.3+3117_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530716/ft2_4FGL_J1527.3+3117_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530716/ft1_4FGL_J1527.3+3117_daily_bin1087.fits outfile=/scratch/kocevski/530716/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1087.fits ra=231.849 dec=31.2989 rad=12.0 tmin=521078401.0 tmax=521337601.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.69
user 3.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530716/ft1_filtered_4FGL_J1527.3+3117_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/530716/ft2_4FGL_J1527.3+3117_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/530716/ltcube_521078401_521337601_4FGL_J1527.3+3117_daily_bin1087.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/530716/ft2_4FGL_J1527.3+3117_daily_bin1087.fits
.....................!
real 9.47
user 9.17
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530716/ft1_filtered_4FGL_J1527.3+3117_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/530716/ft2_4FGL_J1527.3+3117_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/530716/ltcube_521078401_521337601_4FGL_J1527.3+3117_daily_bin1087.fits outfile=/scratch/kocevski/530716/expmap_521078401_521337601_4FGL_J1527.3+3117_daily_bin1087.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/530716/ltcube_521078401_521337601_4FGL_J1527.3+3117_daily_bin1087.fits
.....................!
real 154.97
user 150.64
sys 4.07

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/530716/ft1_filtered_4FGL_J1527.3+3117_daily_bin1087.fits scfile=/scratch/kocevski/530716/ft2_4FGL_J1527.3+3117_daily_bin1087.fits outfile=/scratch/kocevski/530716/cmap_521078401_521337601_4FGL_J1527.3+3117_daily_bin1087.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.49
user 0.30
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530716/ft1_filtered_4FGL_J1527.3+3117_daily_bin1087.fits scfile=/scratch/kocevski/530716/ft2_4FGL_J1527.3+3117_daily_bin1087.fits outfile=/scratch/kocevski/530716/cmap_HighResolution_521078401_521337601_4FGL_J1527.3+3117_daily_bin1087.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.48
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38492E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.6034       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19480E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4514       1.0000         .10000E-03   10000.    
     8 'norm      '    .41376       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.6446       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11244E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1481       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16665       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.388       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18188       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6050       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .64931       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=   6314.602     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2197 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1233       -.40219E-06** at limit **
   2  norm          9.6030        6.0302       -.64814E-08    .52876E-05
   3  Prefactor     .10000E-03    28.875        .29274E-06** at limit **
   4  norm          .10000E-03    5.8332        .48492E-07** at limit **
   5  Prefactor     .10000E-03    40.364       -.32062E-05** at limit **
   6  Prefactor     .10000E-03    2.7345        .14351E-07** at limit **
   7  Prefactor     4.4521        9.7246        .20015E-05    .24094E-04
   8  norm          .41413        1.0454        .65421E-07    .91936E-05
   9  Prefactor     .10000E-03    60.704        .53533E-05** at limit **
  10  Prefactor     .10000E-03    49.492       -.16526E-05** at limit **
  11  Prefactor     .10000E-03    2.8876       -.13831E-07** at limit **
  12  Prefactor     .10000E-03    5.2462       -.19993E-07** at limit **
  13  norm          4.6443        1.5814        .12265E-07    .73571E-04
  14  Prefactor     .10000E-03    7.6357       -.21575E-06** at limit **
  15  Prefactor     .10000E-03    19.044        .21971E-05** at limit **
  16  Prefactor     .10000E-03    15.338       -.14226E-05** at limit **
  17  norm          4.1395        12.580        .24619E-05    .41282E-04
  18  Prefactor     .16436        1.4534        .91186E-07   -.10599E-03
  19  Prefactor     .10000E-03    9.7567        .35873E-06** at limit **
  20  Prefactor     13.388        11.255        .29130E-07    .17815E-05
  21  Prefactor     .18751        1.6614       -.27514E-06    .18916E-03
  22  Normalizat    1.6052        .18988       -.60372E-07    .13907E-03
  23  Prefactor     .64923        .14463       -.12767E-06    .86767E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 9.60296
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.45205
  norm       = 0.414132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.64432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.13949
  Prefactor  = 0.164356
  Prefactor  = 0.0001
  Prefactor  = 13.3877
  Prefactor  = 0.187507
  Normalizat = 1.60524
  Prefactor  = 0.649232
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.602     FROM HESSE     STATUS=OK           372 CALLS     2569 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.635        .34536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.6030        6.0281        .12932E-03   -1.5088    
   3  Prefactor     .10000E-03    28.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.8697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    41.202        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7423        .12828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.4521        9.7514        .95428E-03   -1.5286    
   8  norm          .41413        .98914        .12268E-02   -1.5579    
   9  Prefactor     .10000E-03    60.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    49.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8928        .13187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2506        .17776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.6443        1.5833        .55234E-04   -1.5277    
  14  Prefactor     .10000E-03    7.6941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1395        12.611        .98953E-03   -1.5301    
  18  Prefactor     .16436        9.0959        .18039E-02   -1.5627    
  19  Prefactor     .10000E-03    9.7689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.388        11.263        .10947E-03   -1.4976    
  21  Prefactor     .18751        7.5206        .19539E-02   -1.5621    
  22  Normalizat    1.6052        .21769        .22911E-03   -.74863    
  23  Prefactor     .64923        .16815        .26645E-03   -1.0555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62525e-08
Minuit parameter uncertainties:
  1  0.000100562
  2  6.02844
  3  4.35715e-06
  4  1.20965e-06
  5  0.000138554
  6  9.63535e-07
  7  9.75492
  8  0.989181
  9  1.44759e-05
  10  6.25754e-06
  11  9.34286e-07
  12  6.26012e-07
  13  1.58333
  14  5.91756e-06
  15  6.11512e-06
  16  5.29169e-06
  17  12.6196
  18  2.44502
  19  1.73798e-06
  20  11.2646
  21  2.3747
  22  0.217822
  23  0.168278
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  5.918e-06  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:  6.492e-01  1.683e-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.605e+00  2.178e-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: 9.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/530716/likelihoodResults_521078401_521337601_4FGL_J1527.3+3117_daily_bin1087.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) = 6314.60280271
delta logL = -0.000619296532932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6314.60218387
delta logL = -4.51659616374e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5923       1.0000          .0000       10.000    
     3 'Normalizat'    1.6050       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64940       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6314.602     FROM MIGRAD    STATUS=FAILED        88 CALLS      245 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    780.29        .18142E-02** at limit **
   2  Index         2.6169        8.3636        .50000       -.30309E-04
   3  Normalizat    1.6052        .55078E-01    .22911E-03    .18945E-03
   4  Prefactor     .64923        .43048E-01    .26645E-03    .11157E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6314.602     FROM SIMPLEX   STATUS=UNCHANGED    168 CALLS      413 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    780.29        .48703E-03** at limit **
   2  Index         2.6169        8.3636        .29290E-05   -.30309E-04
   3  Normalizat    1.6052        .55078E-01    .11435E-06    .18945E-03
   4  Prefactor     .64923        .43048E-01    .55996E-07    .11157E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6314.602     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      447 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    97.408        .36285E-03** at limit **
   2  Index         2.6171        8.0511        .50000       -.30331E-04
   3  Normalizat    1.6052        .21007        .45822E-04    .18375E-03
   4  Prefactor     .64923        .16423        .10658E-04    .10667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.61713
  Normalizat = 1.60524
  Prefactor  = 0.649232
 **********
 **   18 **HESSE 
 **********

 FCN=   6314.602     FROM HESSE     STATUS=OK            29 CALLS      476 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8.3859        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6171        6.3050        .50000       -.49675    
   3  Normalizat    1.6052        .21019        .91644E-05   -.74863    
   4  Prefactor     .64923        .16434        .21316E-05   -1.0555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55475e-09
Minuit parameter uncertainties:
  1  0.000496269
  2  4.48631
  3  0.210309
  4  0.164463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530716': 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) = 6314.60218311
delta logL = 3.05539288092e-07

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  4.963e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.617e+00  4.486e+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:  6.492e-01  1.645e-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.605e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 231.849 31.299

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/530716/cmap_HighResolution_521078401_521337601_4FGL_J1527.3+3117_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-03', job_status='DONE', photon_flux_upper_limit='9.68e-08', time_completed='2021-09-12 03:27:44.514594', job_id='530716', GAL2='0.65', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1631442464.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='3.06e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1087' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:27:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 530716: <4FGL_J1527.3+3117_daily_bin1087> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin1087 231.849 31.2989 521078401 521337601 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 :                                   520.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            710 sec.

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

