/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 69 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 = 7477
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1527.3+3117_daily_bin4
RA = 231.849, Dec = 31.2989
tmin = 240364801, tmax = 240624001
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='523323', job_status='RUN', time_executed='2021-09-12 02:57:04.087882', time_epoch_executed='1631440624.09' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/523323

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/523323/ft1_4FGL_J1527.3+3117_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/523323/ft2_4FGL_J1527.3+3117_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/523323/ft1_4FGL_J1527.3+3117_daily_bin4.fits outfile=/scratch/kocevski/523323/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin4.fits ra=231.849 dec=31.2989 rad=12.0 tmin=240364801.0 tmax=240624001.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.41
user 1.24
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/523323/ft2_4FGL_J1527.3+3117_daily_bin4.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/523323/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin4.fits evtable="EVENTS" outfile="/scratch/kocevski/523323/ft1_filtered_4FGL_J1527.3+3117_daily_bin4.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/523323/ft1_filtered_4FGL_J1527.3+3117_daily_bin4.fits" evtable="EVENTS" scfile=/scratch/kocevski/523323/ft2_4FGL_J1527.3+3117_daily_bin4.fits sctable="SC_DATA" outfile=/scratch/kocevski/523323/ltcube_240364801_240624001_4FGL_J1527.3+3117_daily_bin4.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/523323/ft2_4FGL_J1527.3+3117_daily_bin4.fits
.....................!
real 12.49
user 12.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/523323/ft1_filtered_4FGL_J1527.3+3117_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/523323/ft2_4FGL_J1527.3+3117_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/523323/ltcube_240364801_240624001_4FGL_J1527.3+3117_daily_bin4.fits outfile=/scratch/kocevski/523323/expmap_240364801_240624001_4FGL_J1527.3+3117_daily_bin4.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/523323/ltcube_240364801_240624001_4FGL_J1527.3+3117_daily_bin4.fits
.....................!
real 190.32
user 185.57
sys 4.42

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/523323/ft1_filtered_4FGL_J1527.3+3117_daily_bin4.fits scfile=/scratch/kocevski/523323/ft2_4FGL_J1527.3+3117_daily_bin4.fits outfile=/scratch/kocevski/523323/cmap_240364801_240624001_4FGL_J1527.3+3117_daily_bin4.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/523323/ft1_filtered_4FGL_J1527.3+3117_daily_bin4.fits scfile=/scratch/kocevski/523323/ft2_4FGL_J1527.3+3117_daily_bin4.fits outfile=/scratch/kocevski/523323/cmap_HighResolution_240364801_240624001_4FGL_J1527.3+3117_daily_bin4.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26132E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .40777       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.645       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0855       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.7983       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11694E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.868       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2500       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .95480E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3738       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .73798       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=   7433.760     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2571 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.0046       -.59980E-08** at limit **
   2  norm          .10000E-03    1.8277        .17598E-08** at limit **
   3  Prefactor     .10000E-03    13.726       -.15440E-05** at limit **
   4  norm          .10000E-03    2.8084        .33663E-09** at limit **
   5  Prefactor     .10000E-03    4.8597       -.10968E-07** at limit **
   6  Prefactor     .10001E-03    5.3514        .72434E-06** at limit **
   7  Prefactor     .10000E-03    3.7842        .16287E-08** at limit **
   8  norm          .40511        1.1736        .72372E-06   -.56244E-03
   9  Prefactor     .10000E-03    21.580       -.20194E-05** at limit **
  10  Prefactor     40.644        50.573       -.37078E-06   -.38473E-04
  11  Prefactor     9.0852        7.6703        .10350E-05   -.35739E-03
  12  Prefactor     .10000E-03    16.323        .26584E-05** at limit **
  13  norm          7.7985        1.6304        .15484E-07   -.34697E-03
  14  Prefactor     .10000E-03    4.0263       -.19279E-07** at limit **
  15  Prefactor     .10000E-03    7.8434       -.12977E-06** at limit **
  16  Prefactor     .10000E-03    42.160        .10222E-05** at limit **
  17  norm          24.856        16.070        .24622E-06    .36188E-04
  18  Prefactor     2.2500        2.2482        .11297E-06   -.13017E-03
  19  Prefactor     .10000E-03    11.650        .41596E-06** at limit **
  20  Prefactor     .10000E-03    6.3842        .54241E-07** at limit **
  21  Prefactor     .10004E-03    1.4514        .64858E-08** at limit **
  22  Normalizat    1.3739        .17284       -.40605E-06   -.17090E-03
  23  Prefactor     .73798        .13082       -.53879E-07   -.14656E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.40511
  Prefactor  = 0.000100003
  Prefactor  = 40.6438
  Prefactor  = 9.08525
  Prefactor  = 0.000100004
  norm       = 7.79854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.8563
  Prefactor  = 2.25002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  Normalizat = 1.37385
  Prefactor  = 0.737984
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.760     FROM HESSE     STATUS=OK           370 CALLS     2941 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0074        .11921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8409        .11382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8114        .14111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    12.965        .35802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8002        .16378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .40511        1.1574        .15325E-03   -1.5581    
   9  Prefactor     .10000E-03    22.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.644        50.646        .62875E-04   -1.4432    
  11  Prefactor     9.0852        7.9219        .66484E-03   -1.5105    
  12  Prefactor     .10000E-03    17.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.7985        1.6338        .24010E-03   -1.5149    
  14  Prefactor     .10000E-03    4.0462        .16876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.856        16.035        .80328E-04   -1.4710    
  18  Prefactor     2.2500        2.2390        .12368E-03   -1.5408    
  19  Prefactor     .10000E-03    11.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.4684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    3.5777        .34444E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3739        .20062        .23932E-03   -.81388    
  23  Prefactor     .73798        .15213        .24414E-03   -1.0206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50621e-09
Minuit parameter uncertainties:
  1  1.04547e-06
  2  2.64136e-07
  3  0.000300746
  4  5.62082e-07
  5  3.73497e-06
  6  0.000748124
  7  1.05543e-06
  8  1.15742
  9  0.000498886
  10  50.7
  11  7.92284
  12  0.000560629
  13  1.63383
  14  1.59301e-06
  15  1.86347e-05
  16  0.000244632
  17  16.0379
  18  2.23913
  19  7.07627e-05
  20  7.03096e-06
  21  0.000742676
  22  0.20074
  23  0.152215
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.593e-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:  7.380e-01  1.522e-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.374e+00  2.007e-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: 7.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/523323/likelihoodResults_240364801_240624001_4FGL_J1527.3+3117_daily_bin4.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) = 7433.76074432
delta logL = -0.00117528623196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7433.75956906
delta logL = -3.14839780913e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5386       1.0000          .0000       10.000    
     3 'Normalizat'    1.3738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73802       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=   7433.760     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10229E-03    1.3317        .17554E-01** at limit **
   2  Index         2.4671        6.2334        .50000        .55962E-04
   3  Normalizat    1.3739        .23730E-02    .23932E-03    .10797E-03
   4  Prefactor     .73798        .18451E-02    .24414E-03    .64214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102295
  Index      = 2.46713
  Normalizat = 1.37385
  Prefactor  = 0.737984
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.760     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10229E-03    31.243        .17831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4671        8.3456        .50000       -.53121    
   3  Normalizat    1.3739        .11440E-01    .47864E-04   -.81388    
   4  Prefactor     .73798        .88953E-02    .97657E-05   -1.0206    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.04603e-08
Minuit parameter uncertainties:
  1  0.016943
  2  150.921
  3  0.0114404
  4  0.00889528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/523323': 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) = 7433.75956782
delta logL = 1.21733773994e-06

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.023e-04  1.694e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.467e+00  1.509e+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:  7.380e-01  8.895e-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:  1.374e+00  1.144e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 231.849 31.299

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/523323/cmap_HighResolution_240364801_240624001_4FGL_J1527.3+3117_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.19e-08', time_completed='2021-09-12 03:09:06.430081', job_id='523323', GAL2='0.74', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1631441346.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='4' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:09:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 523323: <4FGL_J1527.3+3117_daily_bin4> in cluster <slac> Done

Job <4FGL_J1527.3+3117_daily_bin4> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 12 02:55:43 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 02:55:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 02:55:45 2021
Terminated at Sun Sep 12 03:09:06 2021
Results reported at Sun Sep 12 03:09:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin4 231.849 31.2989 240364801 240624001 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 :                                   721.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

