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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin1385
RA = 231.849, Dec = 31.2989
tmin = 598320001, tmax = 598579201
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='532851', job_status='RUN', time_executed='2021-09-12 03:21:03.699022', time_epoch_executed='1631442063.7' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='1385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532851

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532851/ft1_4FGL_J1527.3+3117_daily_bin1385.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532851/ft2_4FGL_J1527.3+3117_daily_bin1385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532851/ft1_4FGL_J1527.3+3117_daily_bin1385.fits outfile=/scratch/kocevski/532851/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1385.fits ra=231.849 dec=31.2989 rad=12.0 tmin=598320001.0 tmax=598579201.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 2.51
user 2.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532851/ft1_filtered_4FGL_J1527.3+3117_daily_bin1385.fits" evtable="EVENTS" scfile=/scratch/kocevski/532851/ft2_4FGL_J1527.3+3117_daily_bin1385.fits sctable="SC_DATA" outfile=/scratch/kocevski/532851/ltcube_598320001_598579201_4FGL_J1527.3+3117_daily_bin1385.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/532851/ft2_4FGL_J1527.3+3117_daily_bin1385.fits
.....................!
real 9.31
user 9.05
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532851/ft1_filtered_4FGL_J1527.3+3117_daily_bin1385.fits evtable="EVENTS" scfile=/scratch/kocevski/532851/ft2_4FGL_J1527.3+3117_daily_bin1385.fits sctable="SC_DATA" expcube=/scratch/kocevski/532851/ltcube_598320001_598579201_4FGL_J1527.3+3117_daily_bin1385.fits outfile=/scratch/kocevski/532851/expmap_598320001_598579201_4FGL_J1527.3+3117_daily_bin1385.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/532851/ltcube_598320001_598579201_4FGL_J1527.3+3117_daily_bin1385.fits
.....................!
real 142.07
user 138.86
sys 2.99

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/532851/ft1_filtered_4FGL_J1527.3+3117_daily_bin1385.fits scfile=/scratch/kocevski/532851/ft2_4FGL_J1527.3+3117_daily_bin1385.fits outfile=/scratch/kocevski/532851/cmap_598320001_598579201_4FGL_J1527.3+3117_daily_bin1385.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.58
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532851/ft1_filtered_4FGL_J1527.3+3117_daily_bin1385.fits scfile=/scratch/kocevski/532851/ft2_4FGL_J1527.3+3117_daily_bin1385.fits outfile=/scratch/kocevski/532851/cmap_HighResolution_598320001_598579201_4FGL_J1527.3+3117_daily_bin1385.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.44
user 0.30
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.107       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2888       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0918       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.047       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.546       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4994       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8171       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4530       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7071       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.375       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0684       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .97021       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=   10478.34     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2513 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9941       -.37293E-07** at limit **
   2  norm          .10000E-03    1.8134       -.28629E-06** at limit **
   3  Prefactor     22.103        23.921       -.56207E-05    .19039E-03
   4  norm          .10000E-03    1.8999        .34208E-06** at limit **
   5  Prefactor     .10000E-03    10.500        .72009E-07** at limit **
   6  Prefactor     .10000E-03    1.5597       -.67449E-07** at limit **
   7  Prefactor     2.2903        6.2219       -.11088E-05   -.50570E-03
   8  norm          1.0919        .91462       -.12679E-06   -.78514E-03
   9  Prefactor     10.046        29.434       -.29253E-05    .25546E-04
  10  Prefactor     29.543        45.947       -.50917E-05    .60519E-04
  11  Prefactor     7.5004        7.8106       -.37038E-06   -.15371E-03
  12  Prefactor     3.8137        14.414       -.41932E-05   -.31753E-04
  13  norm          2.4530        .86632       -.56978E-07   -.98134E-04
  14  Prefactor     .10000E-03    1.6811       -.13981E-07** at limit **
  15  Prefactor     .10000E-03    8.3706       -.26805E-06** at limit **
  16  Prefactor     1.7076        8.8158       -.17382E-05   -.37322E-03
  17  norm          .10000E-03    3.0917       -.80650E-07** at limit **
  18  Prefactor     .10000E-03    .61307       -.23970E-07** at limit **
  19  Prefactor     .10000E-03    23.439        .11572E-05** at limit **
  20  Prefactor     14.376        7.0089       -.90991E-07   -.19011E-05
  21  Prefactor     .10000E-03    1.3956       -.12911E-06** at limit **
  22  Normalizat    1.0685        .14076        .15504E-05    .12141E-05
  23  Prefactor     .97009        .11258        .50123E-07    .13849E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.1031
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29029
  norm       = 1.09186
  Prefactor  = 10.0457
  Prefactor  = 29.5426
  Prefactor  = 7.50045
  Prefactor  = 3.81368
  norm       = 2.45301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.70756
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3756
  Prefactor  = 0.0001
  Normalizat = 1.06848
  Prefactor  = 0.970094
 **********
 **   18 **HESSE 
 **********

 FCN=   10478.34     FROM HESSE     STATUS=OK           370 CALLS     2883 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0142        .14115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8433        .13457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.103        23.365        .85189E-04   -1.4767    
   4  norm          .10000E-03    1.9010        .13772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5655        .12479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2903        6.4431        .27134E-03   -1.5405    
   8  norm          1.0919        .84525        .85936E-03   -1.5499    
   9  Prefactor     10.046        29.280        .12642E-03   -1.5074    
  10  Prefactor     29.543        45.543        .73709E-04   -1.4620    
  11  Prefactor     7.5004        7.8320        .14645E-03   -1.5160    
  12  Prefactor     3.8137        14.544        .20659E-03   -1.5317    
  13  norm          2.4530        .86526        .54172E-04   -1.5395    
  14  Prefactor     .10000E-03    1.6862        .12952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.3802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7076        9.4871        .32181E-03   -1.5447    
  17  norm          .10000E-03    3.0971        .17570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .62736        .78231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.376        7.0141        .10564E-03   -1.4949    
  21  Prefactor     .10000E-03    1.4329        .23611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0685        .16302        .24766E-03   -.90770    
  23  Prefactor     .97009        .13175        .21314E-03   -.93733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27397e-09
Minuit parameter uncertainties:
  1  1.36465e-06
  2  2.14225e-06
  3  23.3747
  4  4.7826e-06
  5  3.79628e-06
  6  8.26496e-07
  7  6.445
  8  0.845256
  9  29.3216
  10  45.5963
  11  7.83307
  12  14.5573
  13  0.865265
  14  1.04831e-06
  15  2.21859e-06
  16  8.0515
  17  3.64403e-06
  18  2.08353e-06
  19  8.02078e-05
  20  7.01455
  21  5.63872e-06
  22  0.163098
  23  0.131792
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.048e-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:  9.701e-01  1.318e-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.068e+00  1.631e-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: 3.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532851/likelihoodResults_598320001_598579201_4FGL_J1527.3+3117_daily_bin1385.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) = 10478.3424934
delta logL = -0.00281938968146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10478.3396735
delta logL = 5.82875145483e-07

Fit tolerance = 1e-08

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

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

 FCN=   10478.34     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      252 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0015        .13213E-01** at limit **
   2  Index         1.7332        7.1927        .50000       -.16669E-05
   3  Normalizat    1.0685        .59886E-02    .24766E-03   -.58235E-03
   4  Prefactor     .97009        .49603E-02    .21314E-03   -.68751E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.7332
  Normalizat = 1.06848
  Prefactor  = 0.970092
 **********
 **   18 **HESSE 
 **********

 FCN=   10478.34     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      279 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    94.172        .16117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7332        8.1592        .50000       -.71201    
   3  Normalizat    1.0685        .21339E-01    .49532E-04   -.90770    
   4  Prefactor     .97009        .17674E-01    .42627E-04   -.93733    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.0654e-08
Minuit parameter uncertainties:
  1  6.3013e-06
  2  606.266
  3  0.0213387
  4  0.0176746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532851': 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) = 10478.3396636
delta logL = 1.04265236587e-05

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  6.301e-06  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.733e+00  6.063e+02  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.701e-01  1.767e-02  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.068e+00  2.134e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/532851/cmap_HighResolution_598320001_598579201_4FGL_J1527.3+3117_daily_bin1385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-03', job_status='DONE', photon_flux_upper_limit='3.93e-08', time_completed='2021-09-12 03:32:26.275347', job_id='532851', GAL2='0.97', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1631442746.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.04e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1385' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:32:26 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin1385 231.849 31.2989 598320001 598579201 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 :                                   671.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            699 sec.

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

