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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin1106
RA = 231.849, Dec = 31.2989
tmin = 526003201, tmax = 526262401
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='532428', job_status='RUN', time_executed='2021-09-12 03:22:34.421392', time_epoch_executed='1631442154.42' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532428

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532428/ft1_4FGL_J1527.3+3117_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532428/ft2_4FGL_J1527.3+3117_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532428/ft1_4FGL_J1527.3+3117_daily_bin1106.fits outfile=/scratch/kocevski/532428/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1106.fits ra=231.849 dec=31.2989 rad=12.0 tmin=526003201.0 tmax=526262401.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.70
user 3.48
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532428/ft1_filtered_4FGL_J1527.3+3117_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/532428/ft2_4FGL_J1527.3+3117_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/532428/ltcube_526003201_526262401_4FGL_J1527.3+3117_daily_bin1106.fits outfile=/scratch/kocevski/532428/expmap_526003201_526262401_4FGL_J1527.3+3117_daily_bin1106.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/532428/ltcube_526003201_526262401_4FGL_J1527.3+3117_daily_bin1106.fits
.....................!
real 193.19
user 187.61
sys 5.23

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/532428/ft1_filtered_4FGL_J1527.3+3117_daily_bin1106.fits scfile=/scratch/kocevski/532428/ft2_4FGL_J1527.3+3117_daily_bin1106.fits outfile=/scratch/kocevski/532428/cmap_526003201_526262401_4FGL_J1527.3+3117_daily_bin1106.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532428/ft1_filtered_4FGL_J1527.3+3117_daily_bin1106.fits scfile=/scratch/kocevski/532428/ft2_4FGL_J1527.3+3117_daily_bin1106.fits outfile=/scratch/kocevski/532428/cmap_HighResolution_526003201_526262401_4FGL_J1527.3+3117_daily_bin1106.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.197       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3628       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.278       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7435       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    97.450       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    57.735       1.0000         .10000E-03   10000.    
    13 'norm      '    4.3989       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.2512       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.858       1.0000         .10000E-03   10000.    
    17 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .93059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2561       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72498       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1957       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=   6647.940     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2607 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2425       -.25098E-06** at limit **
   2  norm          .10000E-03    2.7375       -.40673E-07** at limit **
   3  Prefactor     .10000E-03    20.280       -.20568E-06** at limit **
   4  norm          10.197        7.2994       -.25677E-06   -.13943E-03
   5  Prefactor     5.3601        15.155        .73705E-05   -.10711E-03
   6  Prefactor     17.279        11.140       -.84691E-06   -.20224E-03
   7  Prefactor     3.7475        9.1156        .45122E-06   -.48421E-05
   8  norm          .10000E-03    .98165        .11164E-06** at limit **
   9  Prefactor     .10000E-03    43.594        .60087E-07** at limit **
  10  Prefactor     97.076        82.849       -.37309E-08   -.55932E-04
  11  Prefactor     .10000E-03    4.6379       -.94521E-07** at limit **
  12  Prefactor     57.722        28.350        .89035E-06    .43952E-03
  13  norm          4.3991        1.6848        .28575E-07   -.15014E-03
  14  Prefactor     8.2520        9.4294        .18534E-06   -.41544E-04
  15  Prefactor     .10000E-03    12.833       -.19975E-07** at limit **
  16  Prefactor     23.858        17.206        .37946E-07   -.69217E-04
  17  norm          .10000E-03    5.7560       -.42672E-07** at limit **
  18  Prefactor     .10001E-03    1.0828        .12333E-06** at limit **
  19  Prefactor     .10000E-03    8.1045        .12367E-06** at limit **
  20  Prefactor     .10000E-03    6.1110       -.41537E-07** at limit **
  21  Prefactor     1.2520        3.4307        .10431E-05   -.24981E-04
  22  Normalizat    .72485        .19507       -.25300E-05   -.50607E-04
  23  Prefactor     1.1960        .14689        .85653E-06   -.21639E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1969
  Prefactor  = 5.36005
  Prefactor  = 17.2793
  Prefactor  = 3.74746
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.0759
  Prefactor  = 0.0001
  Prefactor  = 57.7225
  norm       = 4.39905
  Prefactor  = 8.25197
  Prefactor  = 0.0001
  Prefactor  = 23.8578
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.25205
  Normalizat = 0.724845
  Prefactor  = 1.19599
 **********
 **   18 **HESSE 
 **********

 FCN=   6647.940     FROM HESSE     STATUS=OK           374 CALLS     2981 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.3222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.7699        .13172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.197        7.3025        .12548E-03   -1.5069    
   5  Prefactor     5.3601        15.180        .86770E-03   -1.5245    
   6  Prefactor     17.279        10.730        .96354E-04   -1.4876    
   7  Prefactor     3.7475        9.1058        .20868E-03   -1.5321    
   8  norm          .10000E-03    1.3191        .14736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     97.076        82.900        .40719E-04   -1.3734    
  11  Prefactor     .10000E-03    4.6584        .17144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     57.722        28.779        .52797E-04   -1.4187    
  13  norm          4.3991        1.6911        .56875E-04   -1.5288    
  14  Prefactor     8.2520        9.4574        .13957E-03   -1.5133    
  15  Prefactor     .10000E-03    12.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.858        17.220        .82008E-04   -1.4731    
  17  norm          .10000E-03    5.7599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    2.3744        .30212E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.1073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2520        3.4106        .23819E-03   -1.5484    
  22  Normalizat    .72485        .21684        .31706E-03   -1.0292    
  23  Prefactor     1.1960        .16522        .20347E-03   -.86455    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20502e-10
Minuit parameter uncertainties:
  1  2.48189e-06
  2  2.17904e-06
  3  1.24114e-05
  4  7.3031
  5  15.1904
  6  10.7315
  7  9.10915
  8  4.25511e-07
  9  3.34704e-05
  10  82.9986
  11  4.92105e-06
  12  28.786
  13  1.69108
  14  9.4591
  15  2.39588e-06
  16  17.224
  17  2.5332e-06
  18  0.000246856
  19  1.21564e-06
  20  2.18689e-07
  21  3.41108
  22  0.217098
  23  0.165292
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  8.252e+00  9.459e+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

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  1.196e+00  1.653e-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:  7.248e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.57
Ra Dec: 231.849 31.299
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/532428/likelihoodResults_526003201_526262401_4FGL_J1527.3+3117_daily_bin1106.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) = 6647.92946548
delta logL = 0.0101992714162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6647.92242541
delta logL = 0.017239334552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4752       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3264       1.0000          .0000       10.000    
     3 'Normalizat'    .73523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1917       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.

 FCN=   6647.922     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4877        245.68        .32548E-02    .18356E-03
   2  Index         2.3219        6.1516        .24197       -.59765E-04
   3  Normalizat    .73581        .72476E-01    .71165E-01   -.17763E-03
   4  Prefactor     1.1914        .43140E-01    .34830E-01   -.19779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.48769
  Index      = 2.3219
  Normalizat = 0.735811
  Prefactor  = 1.19143
 **********
 **   18 **HESSE 
 **********

 FCN=   6647.922     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4877        11.693        .13019E-03   -1.5092    
   2  Index         2.3219        1.3635        .92620E-02   -.56524    
   3  Normalizat    .73581        .20896        .31495E-03   -1.0250    
   4  Prefactor     1.1914        .16349        .20382E-03   -.86595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39185e-10
Minuit parameter uncertainties:
  1  11.6958
  2  1.38842
  3  0.209187
  4  0.16356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532428': 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) = 6647.92241733
delta logL = 0.0172474171341

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  9.488e+00  1.170e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.322e+00  1.388e+00  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.191e+00  1.636e-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:  7.358e-01  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 231.849 31.299
Photon Index (Free Index): 2.32 +/- 1.39
Photon Flux (Free Index): 2.90e-08 +/- 6.62e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.18e-05

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/532428/cmap_HighResolution_526003201_526262401_4FGL_J1527.3+3117_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='1.06e-05', photon_flux_error='4.61e-08', dlogl='1.72e-02', energy_flux='1.09e-05', photon_flux2='2.90e-08', job_status='DONE', time_completed='2021-09-12 03:34:00.661071', photon_index_error2='1.39', photon_index2='2.32', ts='1.57', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.18e-05', EG='0.72', time_epoch_completed='1631442840.66', return_code='0', job_id='532428', GAL2='1.19', EG2='0.74', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='6.62e-08', ts2='1.62', photon_index='2.57' WHERE bin_id='1106' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:34:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 532428: <4FGL_J1527.3+3117_daily_bin1106> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin1106 231.849 31.2989 526003201 526262401 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 :                                   682.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

