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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin496
RA = 231.849, Dec = 31.2989
tmin = 367891201, tmax = 368150401
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='526874', job_status='RUN', time_executed='2021-09-12 03:06:08.248463', time_epoch_executed='1631441168.25' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='496'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/526874/ft1_4FGL_J1527.3+3117_daily_bin496.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/526874/ft2_4FGL_J1527.3+3117_daily_bin496.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526874/ft1_4FGL_J1527.3+3117_daily_bin496.fits outfile=/scratch/kocevski/526874/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin496.fits ra=231.849 dec=31.2989 rad=12.0 tmin=367891201.0 tmax=368150401.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.37
user 3.14
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/526874/ft2_4FGL_J1527.3+3117_daily_bin496.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/526874/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin496.fits evtable="EVENTS" outfile="/scratch/kocevski/526874/ft1_filtered_4FGL_J1527.3+3117_daily_bin496.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/526874/ft1_filtered_4FGL_J1527.3+3117_daily_bin496.fits" evtable="EVENTS" scfile=/scratch/kocevski/526874/ft2_4FGL_J1527.3+3117_daily_bin496.fits sctable="SC_DATA" outfile=/scratch/kocevski/526874/ltcube_367891201_368150401_4FGL_J1527.3+3117_daily_bin496.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/526874/ft2_4FGL_J1527.3+3117_daily_bin496.fits
.....................!
real 12.04
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526874/ft1_filtered_4FGL_J1527.3+3117_daily_bin496.fits evtable="EVENTS" scfile=/scratch/kocevski/526874/ft2_4FGL_J1527.3+3117_daily_bin496.fits sctable="SC_DATA" expcube=/scratch/kocevski/526874/ltcube_367891201_368150401_4FGL_J1527.3+3117_daily_bin496.fits outfile=/scratch/kocevski/526874/expmap_367891201_368150401_4FGL_J1527.3+3117_daily_bin496.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/526874/ltcube_367891201_368150401_4FGL_J1527.3+3117_daily_bin496.fits
.....................!
real 191.04
user 184.99
sys 4.88

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/526874/ft1_filtered_4FGL_J1527.3+3117_daily_bin496.fits scfile=/scratch/kocevski/526874/ft2_4FGL_J1527.3+3117_daily_bin496.fits outfile=/scratch/kocevski/526874/cmap_367891201_368150401_4FGL_J1527.3+3117_daily_bin496.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=231.849 yref=31.2989 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526874/ft1_filtered_4FGL_J1527.3+3117_daily_bin496.fits scfile=/scratch/kocevski/526874/ft2_4FGL_J1527.3+3117_daily_bin496.fits outfile=/scratch/kocevski/526874/cmap_HighResolution_367891201_368150401_4FGL_J1527.3+3117_daily_bin496.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3293       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1284       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.311       1.0000         .10000E-03   10000.    
     4 'norm      '    7.6171       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8270       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4514       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.8402       1.0000         .10000E-03   10000.    
     8 'norm      '    .10501E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10900E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    4.8769       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .85857       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2656       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82908       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=   6728.462     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2245 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3294        6.1302       -.10201E-07    .11890E-04
   2  norm          2.1285        4.0294       -.32941E-07   -.28079E-04
   3  Prefactor     11.304        38.299       -.11980E-04    .33511E-05
   4  norm          7.6159        8.4422       -.55878E-07   -.82691E-04
   5  Prefactor     1.8326        6.4108        .49702E-06   -.21984E-03
   6  Prefactor     4.4452        6.4103       -.26572E-06   -.32855E-03
   7  Prefactor     7.8398        7.8516        .18633E-07    .21657E-05
   8  norm          .10000E-03    .84732       -.28348E-07** at limit **
   9  Prefactor     .10000E-03    44.858       -.31333E-06** at limit **
  10  Prefactor     .10000E-03    10.377       -.43767E-07** at limit **
  11  Prefactor     .10000E-03    6.5960       -.53029E-07** at limit **
  12  Prefactor     .10000E-03    10.946       -.19589E-06** at limit **
  13  norm          4.8771        1.4751       -.28327E-07    .90403E-04
  14  Prefactor     .10000E-03    3.4513       -.16749E-07** at limit **
  15  Prefactor     .10000E-03    19.491       -.15015E-07** at limit **
  16  Prefactor     .10000E-03    5.6402        .11666E-10** at limit **
  17  norm          .10000E-03    5.2560       -.44114E-07** at limit **
  18  Prefactor     .10000E-03    .79806       -.40030E-08** at limit **
  19  Prefactor     .10000E-03    8.5205        .54315E-08** at limit **
  20  Prefactor     .85393        7.3277       -.20339E-06   -.23568E-04
  21  Prefactor     .10000E-03    2.8052       -.14888E-07** at limit **
  22  Normalizat    1.2655        .17549        .13488E-05   -.33883E-04
  23  Prefactor     .82923        .13609       -.42440E-06    .11897E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.32941
  norm       = 2.12851
  Prefactor  = 11.3036
  norm       = 7.61593
  Prefactor  = 1.83256
  Prefactor  = 4.44517
  Prefactor  = 7.83981
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.8771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.853928
  Prefactor  = 0.0001
  Normalizat = 1.26546
  Prefactor  = 0.829233
 **********
 **   18 **HESSE 
 **********

 FCN=   6728.462     FROM HESSE     STATUS=OK           376 CALLS     2621 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3294        6.1518        .15955E-03   -1.5205    
   2  norm          2.1285        4.0171        .22043E-03   -1.5416    
   3  Prefactor     11.304        38.351        .11912E-03   -1.5035    
   4  norm          7.6159        8.4364        .72652E-03   -1.5156    
   5  Prefactor     1.8326        25.657        .15441E-02   -1.5437    
   6  Prefactor     4.4452        6.4251        .95428E-03   -1.5286    
   7  Prefactor     7.8398        7.8527        .14320E-03   -1.5148    
   8  norm          .10000E-03    1.7812        .14276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.7037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    63.898        .52553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.8771        1.4776        .51914E-04   -1.5266    
  14  Prefactor     .10000E-03    3.4656        .14870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.2807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .81526        .71529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .85393        21.659        .42417E-02   -1.5523    
  21  Prefactor     .10000E-03    2.9262        .26807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2655        .20532        .23619E-03   -.84603    
  23  Prefactor     .82923        .15894        .23018E-03   -.98660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09145e-08
Minuit parameter uncertainties:
  1  6.15242
  2  4.01762
  3  38.4347
  4  8.43768
  5  13.7207
  6  6.42607
  7  7.85369
  8  5.27859e-07
  9  1.57036e-05
  10  7.82751e-07
  11  7.0677e-06
  12  0.000393057
  13  1.4776
  14  1.85169e-06
  15  5.34542e-06
  16  2.38948e-06
  17  3.45534e-06
  18  1.27973e-06
  19  3.38166e-06
  20  8.60423
  21  7.50827e-06
  22  0.205456
  23  0.159024
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.852e-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:  8.292e-01  1.590e-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.265e+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: 6.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/526874/likelihoodResults_367891201_368150401_4FGL_J1527.3+3117_daily_bin496.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) = 6728.46350077
delta logL = -0.00137270417054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6728.46212768
delta logL = 3.84816303267e-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.5438       1.0000          .0000       10.000    
     3 'Normalizat'    1.2655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82923       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=   6728.462     FROM MIGRAD    STATUS=FAILED        97 CALLS      255 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11117E-03    2.0645        .15275E-01** at limit **
   2  Index         2.2337        8.1118        .50000        .35257E-04
   3  Normalizat    1.2655        .29038E-02    .23619E-03    .16750E-04
   4  Prefactor     .82923        .23568E-02    .23018E-03   -.17533E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6728.462     FROM SIMPLEX   STATUS=PROGRESS      83 CALLS      338 TOTAL
                     EDM=   .87E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10039E-03    2.0645        .35140E-03** at limit **
   2  Index         2.1655        8.1118        .23206E-01    .35257E-04
   3  Normalizat    1.2654        .29038E-02    .18324E-04    .16750E-04
   4  Prefactor     .82919        .23568E-02    .21944E-04   -.17533E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6728.462     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      373 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10158E-03    3.4197        .17289E-01** at limit **
   2  Index         2.0470        8.7307        .50000        .17189E-04
   3  Normalizat    1.2654        .35385E-02    .94476E-05   -.30952E-01
   4  Prefactor     .82919        .28718E-02    .92074E-05   -.32305E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010158
  Index      = 2.04695
  Normalizat = 1.26542
  Prefactor  = 0.829188
 **********
 **   18 **HESSE 
 **********

 FCN=   6728.462     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      402 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10158E-03    119.69        .18264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0470        5.6391        .50000       -.63181    
   3  Normalizat    1.2654        .21418E-01    .18895E-05   -.84605    
   4  Prefactor     .82919        .17382E-01    .18415E-05   -.98661    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78131e-07
Minuit parameter uncertainties:
  1  0.0275552
  2  686.007
  3  0.0214182
  4  0.0173821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526874': 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) = 6728.46212381
delta logL = 4.25382950198e-06

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.016e-04  2.756e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.047e+00  6.860e+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:  8.292e-01  1.738e-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.265e+00  2.142e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/526874/cmap_HighResolution_367891201_368150401_4FGL_J1527.3+3117_daily_bin496.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-12 03:17:34.181310', job_id='526874', GAL2='0.83', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631441854.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='496' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:17:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 526874: <4FGL_J1527.3+3117_daily_bin496> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin496 231.849 31.2989 367891201 368150401 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 :                                   673.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            708 sec.

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

