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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin1600
RA = 231.849, Dec = 31.2989
tmin = 654048001, tmax = 654307201
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='260889', job_status='RUN', time_executed='2021-09-26 00:30:21.046923', time_epoch_executed='1632641421.05' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260889

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260889/ft1_4FGL_J1527.3+3117_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260889/ft2_4FGL_J1527.3+3117_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260889/ft1_4FGL_J1527.3+3117_daily_bin1600.fits outfile=/scratch/kocevski/260889/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1600.fits ra=231.849 dec=31.2989 rad=12.0 tmin=654048001.0 tmax=654307201.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.08
user 2.79
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260889/ft1_filtered_4FGL_J1527.3+3117_daily_bin1600.fits" evtable="EVENTS" scfile=/scratch/kocevski/260889/ft2_4FGL_J1527.3+3117_daily_bin1600.fits sctable="SC_DATA" outfile=/scratch/kocevski/260889/ltcube_654048001_654307201_4FGL_J1527.3+3117_daily_bin1600.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/260889/ft2_4FGL_J1527.3+3117_daily_bin1600.fits
.....................!
real 11.66
user 11.24
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260889/ft1_filtered_4FGL_J1527.3+3117_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/260889/ft2_4FGL_J1527.3+3117_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/260889/ltcube_654048001_654307201_4FGL_J1527.3+3117_daily_bin1600.fits outfile=/scratch/kocevski/260889/expmap_654048001_654307201_4FGL_J1527.3+3117_daily_bin1600.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/260889/ltcube_654048001_654307201_4FGL_J1527.3+3117_daily_bin1600.fits
.....................!
real 156.58
user 151.25
sys 4.17

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/260889/ft1_filtered_4FGL_J1527.3+3117_daily_bin1600.fits scfile=/scratch/kocevski/260889/ft2_4FGL_J1527.3+3117_daily_bin1600.fits outfile=/scratch/kocevski/260889/cmap_654048001_654307201_4FGL_J1527.3+3117_daily_bin1600.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.47
user 0.33
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260889/ft1_filtered_4FGL_J1527.3+3117_daily_bin1600.fits scfile=/scratch/kocevski/260889/ft2_4FGL_J1527.3+3117_daily_bin1600.fits outfile=/scratch/kocevski/260889/cmap_HighResolution_654048001_654307201_4FGL_J1527.3+3117_daily_bin1600.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.49
user 0.32
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8191       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.022       1.0000         .10000E-03   10000.    
     4 'norm      '    .35117       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.782       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.809       1.0000         .10000E-03   10000.    
     8 'norm      '    .59630       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.359       1.0000         .10000E-03   10000.    
    13 'norm      '    .14260       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.747       1.0000         .10000E-03   10000.    
    17 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20562E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33812E-01   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96455       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1624       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=   6658.528     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2648 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8200        8.1898        .80130E-05    .32696E-04
   2  norm          .10000E-03    1.6290        .54245E-07** at limit **
   3  Prefactor     57.996        49.130       -.14119E-04    .31749E-04
   4  norm          .34886        7.0061       -.27807E-05   -.26274E-03
   5  Prefactor     29.789        18.472        .28621E-05    .27229E-03
   6  Prefactor     .10001E-03    5.8315        .53362E-06** at limit **
   7  Prefactor     12.806        9.5381       -.31450E-06   -.26888E-04
   8  norm          .59584        1.8628       -.13917E-05   -.18390E-02
   9  Prefactor     .10000E-03    49.379       -.38156E-04** at limit **
  10  Prefactor     .10000E-03    71.318        .28953E-04** at limit **
  11  Prefactor     .10000E-03    9.5690       -.76828E-06** at limit **
  12  Prefactor     19.356        26.165       -.12913E-05    .15544E-04
  13  norm          .14243        .46091       -.32369E-06   -.22475E-02
  14  Prefactor     .10000E-03    2.4446        .41072E-07** at limit **
  15  Prefactor     .10000E-03    9.8904        .82381E-06** at limit **
  16  Prefactor     23.737        20.969        .24013E-05    .34662E-03
  17  norm          .10000E-03    26.824       -.12890E-04** at limit **
  18  Prefactor     .10000E-03    2.0374       -.12526E-06** at limit **
  19  Prefactor     .10000E-03    35.419        .28277E-04** at limit **
  20  Prefactor     .10000E-03    8.3059       -.11282E-07** at limit **
  21  Prefactor     .10348E-03    2.0422       -.30776E-06** at limit **
  22  Normalizat    .96428        .20248        .18480E-05    .17733E-03
  23  Prefactor     1.1628        .14788       -.43667E-06    .30652E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.81999
  norm       = 0.0001
  Prefactor  = 57.9961
  norm       = 0.348863
  Prefactor  = 29.7889
  Prefactor  = 0.000100007
  Prefactor  = 12.8063
  norm       = 0.595841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3562
  norm       = 0.142429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7367
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103483
  Normalizat = 0.964279
  Prefactor  = 1.16276
 **********
 **   18 **HESSE 
 **********

 FCN=   6658.528     FROM HESSE     STATUS=OK           378 CALLS     3026 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8200        8.1558        .18326E-03   -1.5269    
   2  norm          .10000E-03    1.6366        .10171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     57.996        49.435        .52668E-04   -1.4183    
   4  norm          .34886        40.134        .40540E-02   -1.5590    
   5  Prefactor     29.789        18.519        .73416E-04   -1.4616    
   6  Prefactor     .10001E-03    20.348        .33808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.806        9.5383        .11192E-03   -1.4992    
   8  norm          .59584        1.7004        .16575E-03   -1.5554    
   9  Prefactor     .10000E-03    48.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    71.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.7564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.356        26.216        .91031E-04   -1.4828    
  13  norm          .14243        .47131        .96386E-03   -1.5633    
  14  Prefactor     .10000E-03    2.4491        .12456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.8914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.737        20.925        .82200E-04   -1.4733    
  17  norm          .10000E-03    27.430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8365        .22161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10348E-03    5.7740        .36656E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96428        .23248        .29010E-03   -.94237    
  23  Prefactor     1.1628        .17219        .21194E-03   -.87485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78043e-09
Minuit parameter uncertainties:
  1  8.15769
  2  1.73761e-06
  3  49.47
  4  7.4877
  5  18.523
  6  0.000746708
  7  9.53947
  8  1.7005
  9  5.6316e-05
  10  8.29359e-05
  11  6.25369e-06
  12  26.2315
  13  0.471317
  14  1.43029e-06
  15  3.44801e-08
  16  20.9316
  17  0.00012573
  18  2.48565e-05
  19  0.000170762
  20  4.96544e-06
  21  0.00897009
  22  0.232727
  23  0.172276
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.430e-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:  1.163e+00  1.723e-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:  9.643e-01  2.327e-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.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/260889/likelihoodResults_654048001_654307201_4FGL_J1527.3+3117_daily_bin1600.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) = 6658.52984812
delta logL = -0.00193387022864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6658.52791367
delta logL = 5.82504071645e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5424       1.0000          .0000       10.000    
     3 'Normalizat'    .96430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1628       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=   6658.528     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      256 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.671        .12832E-01** at limit **
   2  Index         1.7172        5.2794        .50000       -.12080E-06
   3  Normalizat    .96428        .88541E-02    .29010E-03    .12602E-02
   4  Prefactor     1.1628        .70710E-02    .21194E-03    .17484E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.71725
  Normalizat = 0.964282
  Prefactor  = 1.16276
 **********
 **   18 **HESSE 
 **********

 FCN=   6658.528     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    131.84        .16501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7172        8.3812        .50000       -.71624    
   3  Normalizat    .96428        .27393E-01    .58019E-04   -.94237    
   4  Prefactor     1.1628        .21877E-01    .42388E-04   -.87485    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.69187e-10
Minuit parameter uncertainties:
  1  0.000164593
  2  657.897
  3  0.0273935
  4  0.0218767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260889': 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) = 6658.52790549
delta logL = 8.75943715073e-06

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.646e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.717e+00  6.579e+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:  1.163e+00  2.188e-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:  9.643e-01  2.739e-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/260889/cmap_HighResolution_654048001_654307201_4FGL_J1527.3+3117_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', job_status='DONE', photon_flux_upper_limit='5.96e-08', time_completed='2021-09-26 00:39:44.850054', job_id='260889', GAL2='1.16', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632641984.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='8.76e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1600' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 260889: <4FGL_J1527.3+3117_daily_bin1600> in cluster <slac> Done

Job <4FGL_J1527.3+3117_daily_bin1600> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 00:25:44 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:27:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:27:44 2021
Terminated at Sun Sep 26 00:39:45 2021
Results reported at Sun Sep 26 00:39:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin1600 231.849 31.2989 654048001 654307201 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 :                                   561.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            841 sec.

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

