/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 130 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 6705
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1527.3+3117_daily_bin59
RA = 231.849, Dec = 31.2989
tmin = 254620801, tmax = 254880001
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='524734', job_status='RUN', time_executed='2021-09-12 03:02:50.925272', time_epoch_executed='1631440970.93' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524734

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524734/ft1_4FGL_J1527.3+3117_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524734/ft2_4FGL_J1527.3+3117_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524734/ft1_4FGL_J1527.3+3117_daily_bin59.fits outfile=/scratch/kocevski/524734/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin59.fits ra=231.849 dec=31.2989 rad=12.0 tmin=254620801.0 tmax=254880001.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 1.34
user 1.18
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524734/ft2_4FGL_J1527.3+3117_daily_bin59.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/524734/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin59.fits evtable="EVENTS" outfile="/scratch/kocevski/524734/ft1_filtered_4FGL_J1527.3+3117_daily_bin59.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524734/ft1_filtered_4FGL_J1527.3+3117_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/524734/ft2_4FGL_J1527.3+3117_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/524734/ltcube_254620801_254880001_4FGL_J1527.3+3117_daily_bin59.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/524734/ft2_4FGL_J1527.3+3117_daily_bin59.fits
.....................!
real 11.84
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524734/ft1_filtered_4FGL_J1527.3+3117_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/524734/ft2_4FGL_J1527.3+3117_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/524734/ltcube_254620801_254880001_4FGL_J1527.3+3117_daily_bin59.fits outfile=/scratch/kocevski/524734/expmap_254620801_254880001_4FGL_J1527.3+3117_daily_bin59.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/524734/ltcube_254620801_254880001_4FGL_J1527.3+3117_daily_bin59.fits
.....................!
real 190.51
user 185.51
sys 4.58

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/524734/ft1_filtered_4FGL_J1527.3+3117_daily_bin59.fits scfile=/scratch/kocevski/524734/ft2_4FGL_J1527.3+3117_daily_bin59.fits outfile=/scratch/kocevski/524734/cmap_254620801_254880001_4FGL_J1527.3+3117_daily_bin59.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524734/ft1_filtered_4FGL_J1527.3+3117_daily_bin59.fits scfile=/scratch/kocevski/524734/ft2_4FGL_J1527.3+3117_daily_bin59.fits outfile=/scratch/kocevski/524734/cmap_HighResolution_254620801_254880001_4FGL_J1527.3+3117_daily_bin59.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10548E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9175       1.0000         .10000E-03   10000.    
     8 'norm      '    .31153       1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.767       1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.059       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.644       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7545       1.0000         .10000E-03   10000.    
    13 'norm      '    14.735       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.393       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6315       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.571       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3983       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .49487E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .57277       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2134       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=   7803.363     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     3031 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.7077        .11267E-02** at limit **
   2  norm          .10000E-03    1.4917        .10509E-02** at limit **
   3  Prefactor     .10000E-03    38.977        .18142E-02** at limit **
   4  norm          .10000E-03    2.0983        .12496E-02** at limit **
   5  Prefactor     9.8544        10.819        .12769E-03   -.74167E-04
   6  Prefactor     .10000E-03    6.7824        .36285E-03** at limit **
   7  Prefactor     4.9169        7.4913        .90688E-03   -.68861E-04
   8  norm          .31291        1.9527        .16347E-02    .92189E-03
   9  Prefactor     60.806        82.986        .51471E-04    .29155E-05
  10  Prefactor     53.047        57.677        .55062E-04   -.16807E-04
  11  Prefactor     11.643        9.6459        .11740E-03    .51711E-04
  12  Prefactor     4.7578        16.154        .18453E-03   -.14478E-04
  13  norm          14.736        2.1474        .45772E-04   -.91650E-04
  14  Prefactor     .10000E-03    8.0740        .18142E-02** at limit **
  15  Prefactor     14.395        20.240        .10557E-03    .14107E-04
  16  Prefactor     .10000E-03    4.7007        .18142E-02** at limit **
  17  norm          .10000E-03    3.5955        .16351E-02** at limit **
  18  Prefactor     1.6315        2.3924        .15700E-03    .16177E-03
  19  Prefactor     10.571        17.273        .12323E-03    .16606E-05
  20  Prefactor     5.3981        6.8773        .86479E-03   -.38900E-04
  21  Prefactor     .10000E-03    4.6863        .34341E-01** at limit **
  22  Normalizat    .57277        .20493        .34543E-03   -.15244E-03
  23  Prefactor     1.2135        .15779        .19879E-03   -.74884E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 9.8544
  Prefactor  = 0.0001
  Prefactor  = 4.91688
  norm       = 0.312914
  Prefactor  = 60.8062
  Prefactor  = 53.0473
  Prefactor  = 11.6431
  Prefactor  = 4.7578
  norm       = 14.7364
  Prefactor  = 0.0001
  Prefactor  = 14.3945
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.63151
  Prefactor  = 10.5709
  Prefactor  = 5.39811
  Prefactor  = 0.000100001
  Normalizat = 0.572771
  Prefactor  = 1.21345
 **********
 **   18 **HESSE 
 **********

 FCN=   7803.363     FROM HESSE     STATUS=OK           362 CALLS     3393 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7078        .22534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.4918        .21018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.986        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.0983        .24992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8544        10.815        .51075E-05   -1.5080    
   6  Prefactor     .10000E-03    6.7826        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9169        7.4893        .36275E-04   -1.5264    
   8  norm          .31291        1.9160        .65386E-04   -1.5596    
   9  Prefactor     60.806        82.617        .10294E-04   -1.4147    
  10  Prefactor     53.047        57.672        .11012E-04   -1.4250    
  11  Prefactor     11.643        9.6441        .46960E-05   -1.5025    
  12  Prefactor     4.7578        16.153        .73810E-05   -1.5272    
  13  norm          14.736        2.1469        .18309E-05   -1.4940    
  14  Prefactor     .10000E-03    8.0760        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.395        20.236        .42230E-05   -1.4949    
  16  Prefactor     .10000E-03    4.7008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.5956        .32702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6315        2.3917        .62800E-05   -1.5453    
  19  Prefactor     10.571        17.273        .49292E-05   -1.5058    
  20  Prefactor     5.3981        6.8762        .34592E-04   -1.5243    
  21  Prefactor     .10000E-03    3.0866        .44561E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .57277        .20450        .13817E-04   -1.0915    
  23  Prefactor     1.2135        .15775        .39758E-04   -.85918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12793e-09
Minuit parameter uncertainties:
  1  6.96673e-06
  2  5.77074e-06
  3  0.000407909
  4  3.72477e-06
  5  10.8175
  6  9.39543e-05
  7  7.49076
  8  1.54841
  9  82.7736
  10  57.733
  11  9.64539
  12  16.168
  13  2.14692
  14  9.747e-05
  15  20.2455
  16  4.73256e-06
  17  6.50791e-06
  18  2.39181
  19  17.2812
  20  6.8772
  21  9.71403e-05
  22  0.204766
  23  0.157813
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  9.747e-05  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.213e+00  1.578e-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:  5.728e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 231.849 31.299
Photon Flux Upper Limit: 9.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/524734/likelihoodResults_254620801_254880001_4FGL_J1527.3+3117_daily_bin59.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): 0
logL (Free Index) = 7803.36370137
delta logL = -0.000590374830608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7803.36311141
delta logL = -4.22173798142e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5872       1.0000          .0000       10.000    
     3 'Normalizat'    .57260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2136       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=   7803.363     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      245 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10608E-03    .50315E-01    .62844E-01** at limit **
   2  Index         2.7222        5.5590        .50000       -.25786E-04
   3  Normalizat    .57277        .42609E-03    .34544E-03    .95080E-04
   4  Prefactor     1.2135        .34847E-03    .19879E-03    .11692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106085
  Index      = 2.72216
  Normalizat = 0.572768
  Prefactor  = 1.21346
 **********
 **   18 **HESSE 
 **********

 FCN=   7803.363     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      276 TOTAL
                     EDM=   .80E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10608E-03    16.745        .37336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7222        5.6846        .50000       -.47301    
   3  Normalizat    .57277        .55688E-02    .13817E-04   -1.0915    
   4  Prefactor     1.2135        .45545E-02    .39758E-04   -.85918    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.98007e-08
Minuit parameter uncertainties:
  1  0.0201938
  2  141.366
  3  0.00556885
  4  0.00455451
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524734': 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) = 7803.36311057
delta logL = 4.22156517743e-07

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.061e-04  2.019e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.722e+00  1.414e+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.213e+00  4.555e-03  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:  5.728e-01  5.569e-03  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/524734/cmap_HighResolution_254620801_254880001_4FGL_J1527.3+3117_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.74e-03', job_status='DONE', photon_flux_upper_limit='9.90e-08', time_completed='2021-09-12 03:15:58.994604', job_id='524734', GAL2='1.21', fit_tolerance='1e-08', EG2='0.57', EG='0.57', time_epoch_completed='1631441758.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='4.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='59' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:15:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 524734: <4FGL_J1527.3+3117_daily_bin59> in cluster <slac> Done

Job <4FGL_J1527.3+3117_daily_bin59> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep 12 03:00:29 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 03:00:31 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:00:31 2021
Terminated at Sun Sep 12 03:15:59 2021
Results reported at Sun Sep 12 03:15:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin59 231.849 31.2989 254620801 254880001 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 :                                   786.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

