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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin1200
RA = 231.849, Dec = 31.2989
tmin = 550368001, tmax = 550627201
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='532569', job_status='RUN', time_executed='2021-09-12 03:23:21.129461', time_epoch_executed='1631442201.13' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532569

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532569/ft1_4FGL_J1527.3+3117_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532569/ft2_4FGL_J1527.3+3117_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532569/ft1_4FGL_J1527.3+3117_daily_bin1200.fits outfile=/scratch/kocevski/532569/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1200.fits ra=231.849 dec=31.2989 rad=12.0 tmin=550368001.0 tmax=550627201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.00
user 3.77
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532569/ft1_filtered_4FGL_J1527.3+3117_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/532569/ft2_4FGL_J1527.3+3117_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/532569/ltcube_550368001_550627201_4FGL_J1527.3+3117_daily_bin1200.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/532569/ft2_4FGL_J1527.3+3117_daily_bin1200.fits
.....................!
real 11.68
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532569/ft1_filtered_4FGL_J1527.3+3117_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/532569/ft2_4FGL_J1527.3+3117_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/532569/ltcube_550368001_550627201_4FGL_J1527.3+3117_daily_bin1200.fits outfile=/scratch/kocevski/532569/expmap_550368001_550627201_4FGL_J1527.3+3117_daily_bin1200.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/532569/ltcube_550368001_550627201_4FGL_J1527.3+3117_daily_bin1200.fits
.....................!
real 190.91
user 184.84
sys 5.73

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.025       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    94.242       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    123.95       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13388E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.829       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .35513       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0216       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=   1188.545     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2512 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    44.935       -.96173E-05** at limit **
   2  norm          .10000E-03    5.2314        .18378E-06** at limit **
   3  Prefactor     43.104        139.59        .10189E-03    .64930E-04
   4  norm          .10000E-03    43.075       -.26040E-04** at limit **
   5  Prefactor     94.240        81.901       -.24211E-05    .18572E-03
   6  Prefactor     .10000E-03    26.300       -.98441E-06** at limit **
   7  Prefactor     .10000E-03    12.509        .57894E-06** at limit **
   8  norm          .10000E-03    6.6117        .19998E-06** at limit **
   9  Prefactor     .10000E-03    173.77        .16729E-03** at limit **
  10  Prefactor     124.04        148.31        .66979E-04    .16127E-03
  11  Prefactor     .10005E-03    89.238       -.54965E-04** at limit **
  12  Prefactor     .10000E-03    473.21       -.13974E-03** at limit **
  13  norm          10.667        6.2506        .61996E-06    .72670E-03
  14  Prefactor     18.830        29.113        .10942E-05    .13021E-03
  15  Prefactor     .10000E-03    56.535        .48270E-04** at limit **
  16  Prefactor     .10000E-03    100.46       -.55814E-04** at limit **
  17  norm          .10000E-03    66.530        .20371E-04** at limit **
  18  Prefactor     .10000E-03    5.9439        .31214E-06** at limit **
  19  Prefactor     .10000E-03    1826.8       -.12857E-02** at limit **
  20  Prefactor     .10000E-03    13.542        .24518E-06** at limit **
  21  Prefactor     .10000E-03    34.175        .10990E-04** at limit **
  22  Normalizat    .35539        .55250       -.88200E-04    .77090E-04
  23  Prefactor     1.0214        .32953        .11494E-04    .43869E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 43.1036
  norm       = 0.0001
  Prefactor  = 94.2397
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 124.037
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  norm       = 10.6668
  Prefactor  = 18.8305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.355387
  Prefactor  = 1.02138
 **********
 **   18 **HESSE 
 **********

 FCN=   1188.545     FROM HESSE     STATUS=OK           348 CALLS     2860 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    45.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.2691        .76989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.104        138.41        .61117E-04   -1.4394    
   4  norm          .10000E-03    43.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     94.240        81.619        .41400E-04   -1.3763    
   6  Prefactor     .10000E-03    26.309        .17275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.577        .11903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.6174        .86579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    173.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     124.04        146.94        .18077E-03   -1.3476    
  11  Prefactor     .10005E-03    91.217        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    473.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.667        6.2647        .59152E-04   -1.5055    
  14  Prefactor     18.830        29.206        .92302E-04   -1.4840    
  15  Prefactor     .10000E-03    56.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    100.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    66.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0247        .82045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1823.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.570        .12394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .35539        .57363        .43568E-03   -1.1967    
  23  Prefactor     1.0214        .35491        .17529E-03   -.92020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70765e-09
Minuit parameter uncertainties:
  1  0.000247362
  2  5.1611e-05
  3  139.465
  4  0.000152993
  5  81.716
  6  6.66428e-05
  7  0.000178447
  8  1.87117e-05
  9  1.2293e-05
  10  147.378
  11  0.00419501
  12  5.85349e-05
  13  6.26507
  14  29.2281
  15  0.000131056
  16  6.92067e-06
  17  4.6552e-06
  18  0.000137657
  19  3.78965e-05
  20  6.56161e-05
  21  4.03561e-05
  22  0.583516
  23  0.355726
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.883e+01  2.923e+01  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.021e+00  3.557e-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:  3.554e-01  5.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.85
Ra Dec: 231.849 31.299
Photon Flux Upper Limit: 5.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.94e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532569/likelihoodResults_550368001_550627201_4FGL_J1527.3+3117_daily_bin1200.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) = 1187.49010565
delta logL = 1.05529818507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1187.12298389
delta logL = 1.4224199389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.177       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3867       1.0000          .0000       10.000    
     3 'Normalizat'    .37923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0081       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=   1187.123     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.315        60.405        .23511E-04    .12022E-03
   2  Index         1.3873        .55963        .12526E-03   -.24841E-04
   3  Normalizat    .37828        .46274       -.11347E-05   -.89409E-04
   4  Prefactor     1.0083        .31079       -.15633E-05   -.14241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.3152
  Index      = 1.3873
  Normalizat = 0.378276
  Prefactor  = 1.0083
 **********
 **   18 **HESSE 
 **********

 FCN=   1187.123     FROM HESSE     STATUS=OK            29 CALLS      237 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.315        60.065        .26299E-03   -1.4179    
   2  Index         1.3873        .55624        .49555E-02   -.80747    
   3  Normalizat    .37828        .50763        .42242E-03   -1.1844    
   4  Prefactor     1.0083        .34255        .17586E-03   -.92453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40816e-10
Minuit parameter uncertainties:
  1  60.1279
  2  0.558667
  3  0.513997
  4  0.343297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532569': 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): 0
logL (Free Index) = 1187.12297772
delta logL = 1.42242611042

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  5.832e+01  6.013e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.387e+00  5.587e-01  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.008e+00  3.433e-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:  3.783e-01  5.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 231.849 31.299
Photon Index (Free Index): 1.39 +/- 0.56
Photon Flux (Free Index): 5.05e-08 +/- 5.86e-08
Energy Flux (Free Index): 2.33e-04 +/- 3.61e-04

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/532569/cmap_HighResolution_550368001_550627201_4FGL_J1527.3+3117_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-02', comment='SUCCESS', energy_flux2='2.33e-04', dlogl='1.42e+00', photon_flux2='5.05e-08', job_status='DONE', time_completed='2021-09-12 03:30:11.430588', photon_index_error2='0.56', photon_index2='1.39', ts='0.85', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='5.05e-07', energy_flux_error2='3.61e-04', EG='0.36', time_epoch_completed='1631442611.43', return_code='0', job_id='532569', GAL2='1.01', EG2='0.38', return_code2='0', photon_flux_error2='5.86e-08', ts2='3.72', photon_index='2.57' WHERE bin_id='1200' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:30:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 532569: <4FGL_J1527.3+3117_daily_bin1200> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin1200 231.849 31.2989 550368001 550627201 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 :                                   384.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            583 sec.

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

