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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin1453
RA = 231.849, Dec = 31.2989
tmin = 615945601, tmax = 616204801
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='532945', job_status='RUN', time_executed='2021-09-12 03:21:19.463691', time_epoch_executed='1631442079.46' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='1453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532945

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532945/ft1_4FGL_J1527.3+3117_daily_bin1453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532945/ft2_4FGL_J1527.3+3117_daily_bin1453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532945/ft1_4FGL_J1527.3+3117_daily_bin1453.fits outfile=/scratch/kocevski/532945/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1453.fits ra=231.849 dec=31.2989 rad=12.0 tmin=615945601.0 tmax=616204801.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.20
user 3.98
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532945/ft2_4FGL_J1527.3+3117_daily_bin1453.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/532945/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1453.fits evtable="EVENTS" outfile="/scratch/kocevski/532945/ft1_filtered_4FGL_J1527.3+3117_daily_bin1453.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/532945/ft1_filtered_4FGL_J1527.3+3117_daily_bin1453.fits" evtable="EVENTS" scfile=/scratch/kocevski/532945/ft2_4FGL_J1527.3+3117_daily_bin1453.fits sctable="SC_DATA" outfile=/scratch/kocevski/532945/ltcube_615945601_616204801_4FGL_J1527.3+3117_daily_bin1453.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/532945/ft2_4FGL_J1527.3+3117_daily_bin1453.fits
.....................!
real 11.89
user 11.52
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532945/ft1_filtered_4FGL_J1527.3+3117_daily_bin1453.fits evtable="EVENTS" scfile=/scratch/kocevski/532945/ft2_4FGL_J1527.3+3117_daily_bin1453.fits sctable="SC_DATA" expcube=/scratch/kocevski/532945/ltcube_615945601_616204801_4FGL_J1527.3+3117_daily_bin1453.fits outfile=/scratch/kocevski/532945/expmap_615945601_616204801_4FGL_J1527.3+3117_daily_bin1453.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/532945/ltcube_615945601_616204801_4FGL_J1527.3+3117_daily_bin1453.fits
.....................!
real 190.43
user 186.03
sys 4.06

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/532945/ft1_filtered_4FGL_J1527.3+3117_daily_bin1453.fits scfile=/scratch/kocevski/532945/ft2_4FGL_J1527.3+3117_daily_bin1453.fits outfile=/scratch/kocevski/532945/cmap_615945601_616204801_4FGL_J1527.3+3117_daily_bin1453.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.53
user 0.38
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4334       1.0000         .10000E-03   10000.    
     2 'norm      '    .12232E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    30.952       1.0000         .10000E-03   10000.    
     4 'norm      '    16.405       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .68642       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2186       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9120       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    116.38       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4843       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.4980       1.0000         .10000E-03   10000.    
    17 'norm      '    .10901E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10820E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0960       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91362       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=   6321.958     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2530 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4340        8.1447        .28324E-06    .24748E-03
   2  norm          .10000E-03    2.9607       -.82027E-06** at limit **
   3  Prefactor     30.954        32.743       -.21369E-05   -.12511E-03
   4  norm          16.409        9.6482        .42674E-07    .10186E-03
   5  Prefactor     .64309        27.547        .31013E-05    .34633E-03
   6  Prefactor     2.2190        7.2839       -.24534E-05    .84400E-05
   7  Prefactor     .10000E-03    4.9646        .17288E-05** at limit **
   8  norm          1.9122        1.7871        .34506E-06    .80691E-03
   9  Prefactor     .10000E-03    28.903        .34046E-05** at limit **
  10  Prefactor     116.38        66.737        .20138E-05    .18779E-03
  11  Prefactor     .10000E-03    2.6071        .60415E-07** at limit **
  12  Prefactor     3.4846        14.731       -.11659E-05   -.45137E-05
  13  norm          .10000E-03    .34872        .69578E-07** at limit **
  14  Prefactor     .10000E-03    2.7869        .20968E-06** at limit **
  15  Prefactor     .10000E-03    10.718        .22945E-05** at limit **
  16  Prefactor     7.4968        12.156       -.22372E-06    .10339E-05
  17  norm          .10000E-03    6.1776        .52996E-09** at limit **
  18  Prefactor     .10000E-03    .77840       -.14012E-07** at limit **
  19  Prefactor     .10000E-03    5.2607       -.32986E-06** at limit **
  20  Prefactor     .10000E-03    3.4509       -.44166E-08** at limit **
  21  Prefactor     .10019E-03    6.1938        .24262E-05** at limit **
  22  Normalizat    1.0959        .18121        .17312E-05    .20757E-03
  23  Prefactor     .91370        .13992       -.65297E-06    .32390E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.434
  norm       = 0.000100004
  Prefactor  = 30.9544
  norm       = 16.4086
  Prefactor  = 0.643094
  Prefactor  = 2.21899
  Prefactor  = 0.000100001
  norm       = 1.91216
  Prefactor  = 0.000100003
  Prefactor  = 116.379
  Prefactor  = 0.0001
  Prefactor  = 3.4846
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.49677
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100192
  Normalizat = 1.0959
  Prefactor  = 0.9137
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.958     FROM HESSE     STATUS=OK           366 CALLS     2896 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4340        8.1554        .13804E-03   -1.5127    
   2  norm          .10000E-03    5.4933        .24006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     30.954        32.889        .72019E-04   -1.4595    
   4  norm          16.409        9.6560        .98886E-04   -1.4898    
   5  Prefactor     .64309        36.028        .44740E-02   -1.5548    
   6  Prefactor     2.2190        7.3762        .27609E-03   -1.5410    
   7  Prefactor     .10000E-03    5.0425        .17343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9122        1.7713        .88050E-04   -1.5431    
   9  Prefactor     .10000E-03    29.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     116.38        66.973        .37296E-04   -1.3546    
  11  Prefactor     .10000E-03    2.6159        .12536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4846        14.776        .21662E-03   -1.5335    
  13  norm          .10000E-03    .36293        .91429E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8007        .12952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.4968        12.134        .14646E-03   -1.5160    
  17  norm          .10000E-03    6.1828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .78878        .68476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.2654        .17817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.4588        .14424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10019E-03    18.325        .18933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0959        .20535        .23978E-03   -.89884    
  23  Prefactor     .91370        .16143        .21306E-03   -.95664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41742e-08
Minuit parameter uncertainties:
  1  8.15646
  2  0.000313812
  3  32.9082
  4  9.6569
  5  9.63222
  6  7.37922
  7  0.000114482
  8  1.77136
  9  0.000579201
  10  67.0166
  11  4.5302e-08
  12  14.3568
  13  5.47848e-07
  14  4.7781e-06
  15  0.000240969
  16  12.1383
  17  5.52625e-06
  18  2.52519e-06
  19  2.61124e-05
  20  2.84226e-06
  21  0.00375582
  22  0.205504
  23  0.161514
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  4.778e-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.137e-01  1.615e-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.096e+00  2.055e-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: 5.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532945/likelihoodResults_615945601_616204801_4FGL_J1527.3+3117_daily_bin1453.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) = 6321.95969871
delta logL = -0.00169916075265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6321.95799943
delta logL = 1.23790414364e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5504       1.0000          .0000       10.000    
     3 'Normalizat'    1.0959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91374       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=   6321.958     FROM MIGRAD    STATUS=FAILED        89 CALLS      236 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10776E-03    3.8599        .13148E-01** at limit **
   2  Index         2.0002        5.0821        .50000        .15913E-04
   3  Normalizat    1.0959        .43018E-02    .23978E-03    .43525E-04
   4  Prefactor     .91370        .35412E-02    .21306E-03    .48929E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6321.958     FROM SIMPLEX   STATUS=UNCHANGED     96 CALLS      332 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10776E-03    3.8599        .25116E-03** at limit **
   2  Index         2.0002        5.0821        .34684E-01    .15913E-04
   3  Normalizat    1.0959        .43018E-02    .44085E-04    .43525E-04
   4  Prefactor     .91370        .35412E-02    .32635E-04    .48929E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6321.958     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      410 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    108.94        .30452E-02** at limit **
   2  Index         1.7882        8.2664        .50000       -.53114E-07
   3  Normalizat    1.0959        .23170E-01    .19182E-05   -.92455E-04
   4  Prefactor     .91370        .19074E-01    .17045E-05   -.10271E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.78823
  Normalizat = 1.0959
  Prefactor  = 0.913699
 **********
 **   18 **HESSE 
 **********

 FCN=   6321.958     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      439 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    489.18        .60904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7882        6.4413        .50000       -.69757    
   3  Normalizat    1.0959        .57910E-01    .38365E-06   -.89884    
   4  Prefactor     .91370        .47944E-01    .34090E-06   -.95664    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.93373e-10
Minuit parameter uncertainties:
  1  3.85058e-05
  2  1683
  3  0.0579134
  4  0.0479467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532945': 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) = 6321.95799428
delta logL = 5.26999065187e-06

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.851e-05  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.788e+00  1.683e+03  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.137e-01  4.795e-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.096e+00  5.791e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/532945/cmap_HighResolution_615945601_616204801_4FGL_J1527.3+3117_daily_bin1453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-12 03:32:51.904071', job_id='532945', GAL2='0.91', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631442771.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='5.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1453' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:32:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 532945: <4FGL_J1527.3+3117_daily_bin1453> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin1453 231.849 31.2989 615945601 616204801 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 :                                   678.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            719 sec.

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

