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


Performing analysis on: 4FGL_J1527.3+3117_daily_bin1129
RA = 231.849, Dec = 31.2989
tmin = 531964801, tmax = 532224001
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='532461', job_status='RUN', time_executed='2021-09-12 03:23:05.834362', time_epoch_executed='1631442185.83' WHERE source_name='4FGL J1527.3+3117' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532461

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532461/ft1_4FGL_J1527.3+3117_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532461/ft2_4FGL_J1527.3+3117_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532461/ft1_4FGL_J1527.3+3117_daily_bin1129.fits outfile=/scratch/kocevski/532461/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1129.fits ra=231.849 dec=31.2989 rad=12.0 tmin=531964801.0 tmax=532224001.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.52
user 3.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532461/ft2_4FGL_J1527.3+3117_daily_bin1129.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/532461/ft1_filteredMKT_4FGL_J1527.3+3117_daily_bin1129.fits evtable="EVENTS" outfile="/scratch/kocevski/532461/ft1_filtered_4FGL_J1527.3+3117_daily_bin1129.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.49
user 0.30
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532461/ft1_filtered_4FGL_J1527.3+3117_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/532461/ft2_4FGL_J1527.3+3117_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/532461/ltcube_531964801_532224001_4FGL_J1527.3+3117_daily_bin1129.fits outfile=/scratch/kocevski/532461/expmap_531964801_532224001_4FGL_J1527.3+3117_daily_bin1129.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/532461/ltcube_531964801_532224001_4FGL_J1527.3+3117_daily_bin1129.fits
.....................!
real 190.57
user 185.42
sys 4.65

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/532461/ft1_filtered_4FGL_J1527.3+3117_daily_bin1129.fits scfile=/scratch/kocevski/532461/ft2_4FGL_J1527.3+3117_daily_bin1129.fits outfile=/scratch/kocevski/532461/cmap_531964801_532224001_4FGL_J1527.3+3117_daily_bin1129.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532461/ft1_filtered_4FGL_J1527.3+3117_daily_bin1129.fits scfile=/scratch/kocevski/532461/ft2_4FGL_J1527.3+3117_daily_bin1129.fits outfile=/scratch/kocevski/532461/cmap_HighResolution_531964801_532224001_4FGL_J1527.3+3117_daily_bin1129.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .28454       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10693E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19693E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9650       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5548       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    49.484       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0609       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4116       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7062       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1474       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0649       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0656       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=   6593.085     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2547 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3460        .19453E-07** at limit **
   2  norm          .26506        2.7717        .33197E-06    .37821E-06
   3  Prefactor     .10000E-03    18.135       -.78759E-06** at limit **
   4  norm          .10001E-03    6.4595        .22343E-05** at limit **
   5  Prefactor     .10000E-03    5.3201        .93069E-07** at limit **
   6  Prefactor     .10000E-03    48.036        .17154E-04** at limit **
   7  Prefactor     3.9652        5.4480       -.20276E-06    .11682E-03
   8  norm          1.5530        1.8924       -.90055E-06   -.72846E-03
   9  Prefactor     .10000E-03    90.025        .26115E-05** at limit **
  10  Prefactor     49.486        59.367       -.23159E-06    .14555E-07
  11  Prefactor     6.0613        6.4200        .39347E-06    .79254E-04
  12  Prefactor     .10000E-03    14.056        .26408E-06** at limit **
  13  norm          3.4123        1.3984        .45694E-08   -.27592E-03
  14  Prefactor     .10000E-03    4.6247       -.35969E-09** at limit **
  15  Prefactor     .10000E-03    20.509       -.57085E-07** at limit **
  16  Prefactor     .10000E-03    26.350        .14498E-05** at limit **
  17  norm          .10000E-03    27.660        .12344E-05** at limit **
  18  Prefactor     1.7064        1.6727        .78882E-08   -.22104E-03
  19  Prefactor     .10000E-03    33.816       -.21189E-05** at limit **
  20  Prefactor     5.1404        14.671       -.87851E-06    .10245E-03
  21  Prefactor     .10000E-03    .93635       -.34889E-07** at limit **
  22  Normalizat    1.0646        .18611        .18452E-06   -.40322E-03
  23  Prefactor     1.0657        .14833        .37705E-06   -.32911E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.265059
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.96516
  norm       = 1.55303
  Prefactor  = 0.0001
  Prefactor  = 49.4858
  Prefactor  = 6.06126
  Prefactor  = 0.0001
  norm       = 3.41227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 1.70637
  Prefactor  = 0.0001
  Prefactor  = 5.14044
  Prefactor  = 0.0001
  Normalizat = 1.06463
  Prefactor  = 1.06572
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.085     FROM HESSE     STATUS=OK           368 CALLS     2915 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3497        .12145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .26506        19.335        .25968E-02   -1.5605    
   3  Prefactor     .10000E-03    18.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    22.580        .37742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.059        .35911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9652        5.4377        .20257E-03   -1.5310    
   8  norm          1.5530        1.9074        .11558E-03   -1.5459    
   9  Prefactor     .10000E-03    90.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     49.486        59.371        .57007E-04   -1.4300    
  11  Prefactor     6.0613        6.4690        .16309E-03   -1.5216    
  12  Prefactor     .10000E-03    14.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4123        1.3985        .58398E-04   -1.5339    
  14  Prefactor     .10000E-03    4.6388        .17031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    27.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7064        1.6789        .10077E-03   -1.5447    
  19  Prefactor     .10000E-03    34.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1404        14.679        .17720E-03   -1.5254    
  21  Prefactor     .10000E-03    .94205        .76725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0646        .21770        .26947E-03   -.90896    
  23  Prefactor     1.0657        .17526        .21658E-03   -.90570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51677e-10
Minuit parameter uncertainties:
  1  6.96033e-07
  2  4.52833
  3  2.57205e-05
  4  0.000714332
  5  4.02419e-06
  6  0.000431027
  7  5.43835
  8  1.90748
  9  4.83494e-05
  10  59.4425
  11  6.4697
  12  2.00658e-05
  13  1.39853
  14  1.73747e-05
  15  2.87328e-05
  16  0.000257347
  17  0.000367677
  18  1.6789
  19  0.000230013
  20  14.6892
  21  1.07727e-06
  22  0.217888
  23  0.175351
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.737e-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.066e+00  1.754e-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.065e+00  2.179e-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: 8.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532461/likelihoodResults_531964801_532224001_4FGL_J1527.3+3117_daily_bin1129.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) = 6593.08652323
delta logL = -0.00102640253317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6593.08549682
delta logL = 4.48653736385e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5518       1.0000          .0000       10.000    
     3 'Normalizat'    1.0646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0658       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6593.085     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10159E-03    52.228        .17246E-02** at limit **
   2  Index         2.4818        5.5179        .50000        .28065E-04
   3  Normalizat    1.0646        .15345E-01    .26947E-03   -.13163E-04
   4  Prefactor     1.0657        .12408E-01    .21658E-03   -.91230E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6593.085     FROM SIMPLEX   STATUS=PROGRESS     127 CALLS      367 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10146E-03    52.228        .27419E-03** at limit **
   2  Index         2.4807        5.5179        .34197E-03    .28065E-04
   3  Normalizat    1.0646        .15345E-01    .40057E-05   -.13163E-04
   4  Prefactor     1.0657        .12408E-01    .23802E-05   -.91230E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6593.085     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      421 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.901        .34492E-02** at limit **
   2  Index         1.9676        5.9411        .50000       -.20736E-07
   3  Normalizat    1.0646        .16600E-01    .10779E-04    .15188E-04
   4  Prefactor     1.0657        .13422E-01    .86632E-05    .13648E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96759
  Normalizat = 1.06464
  Prefactor  = 1.06572
 **********
 **   18 **HESSE 
 **********

 FCN=   6593.085     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      450 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    348.63        .68984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9676        9.0069        .50000       -.65163    
   3  Normalizat    1.0646        .38954E-01    .21557E-05   -.90895    
   4  Prefactor     1.0657        .31497E-01    .17326E-05   -.90570    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24718e-11
Minuit parameter uncertainties:
  1  2.67462e-05
  2  1114.86
  3  0.0389548
  4  0.0314973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532461': 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) = 6593.08549464
delta logL = 2.18036439037e-06

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.675e-05  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.968e+00  1.115e+03  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.066e+00  3.150e-02  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  1.065e+00  3.895e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/532461/cmap_HighResolution_531964801_532224001_4FGL_J1527.3+3117_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', job_status='DONE', photon_flux_upper_limit='8.39e-08', time_completed='2021-09-12 03:34:45.253749', job_id='532461', GAL2='1.07', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631442885.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1129' AND source_name='4FGL J1527.3+3117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 03:34:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 532461: <4FGL_J1527.3+3117_daily_bin1129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_daily_bin1129 231.849 31.2989 531964801 532224001 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.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            865 sec.

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

