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


Performing analysis on: 4FGL_J1927.5+6117_daily_bin451
RA = 291.882, Dec = 61.294
tmin = 356227201, tmax = 356486401
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='957814', job_status='RUN', time_executed='2021-09-23 00:45:45.437260', time_epoch_executed='1632383145.44' WHERE source_name='4FGL J1927.5+6117' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957814

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957814/ft1_4FGL_J1927.5+6117_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/957814/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/957814/ft2_4FGL_J1927.5+6117_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957814/ft1_4FGL_J1927.5+6117_daily_bin451.fits outfile=/scratch/kocevski/957814/ft1_filteredMKT_4FGL_J1927.5+6117_daily_bin451.fits ra=291.882 dec=61.294 rad=12.0 tmin=356227201.0 tmax=356486401.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.14
user 2.92
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/957814/ft2_4FGL_J1927.5+6117_daily_bin451.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/957814/ft2_4FGL_J1927.5+6117_daily_bin451.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/957814/ft1_filteredMKT_4FGL_J1927.5+6117_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/957814/ft1_filtered_4FGL_J1927.5+6117_daily_bin451.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957814/ft1_filtered_4FGL_J1927.5+6117_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/957814/ft2_4FGL_J1927.5+6117_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/957814/ltcube_356227201_356486401_4FGL_J1927.5+6117_daily_bin451.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/957814/ft2_4FGL_J1927.5+6117_daily_bin451.fits
.....................!
real 3.75
user 3.37
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957814/ft1_filtered_4FGL_J1927.5+6117_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/957814/ft2_4FGL_J1927.5+6117_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/957814/ltcube_356227201_356486401_4FGL_J1927.5+6117_daily_bin451.fits outfile=/scratch/kocevski/957814/expmap_356227201_356486401_4FGL_J1927.5+6117_daily_bin451.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/957814/ltcube_356227201_356486401_4FGL_J1927.5+6117_daily_bin451.fits
.....................!
real 192.63
user 186.57
sys 5.69

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
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Added 192 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1927.5+6117 @ 291.882 61.294

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/957814/ft1_filtered_4FGL_J1927.5+6117_daily_bin451.fits scfile=/scratch/kocevski/957814/ft2_4FGL_J1927.5+6117_daily_bin451.fits outfile=/scratch/kocevski/957814/cmap_356227201_356486401_4FGL_J1927.5+6117_daily_bin451.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=291.882 yref=61.294 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.58
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957814/ft1_filtered_4FGL_J1927.5+6117_daily_bin451.fits scfile=/scratch/kocevski/957814/ft2_4FGL_J1927.5+6117_daily_bin451.fits outfile=/scratch/kocevski/957814/cmap_HighResolution_356227201_356486401_4FGL_J1927.5+6117_daily_bin451.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=291.882 yref=61.294 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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/957814/ft1_filtered_4FGL_J1927.5+6117_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/957814/ft2_4FGL_J1927.5+6117_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/957814/Model_4FGL_J1927.5+6117_daily_bin451.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/957814/ft1_filtered_4FGL_J1927.5+6117_daily_bin451.fits.....................!
real 51.53
user 50.24
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/957814/ft1_filtered_4FGL_J1927.5+6117_daily_bin451.fits', '/scratch/kocevski/957814/ft2_4FGL_J1927.5+6117_daily_bin451.fits', expMap='/scratch/kocevski/957814/expmap_356227201_356486401_4FGL_J1927.5+6117_daily_bin451.fits', expCube='/scratch/kocevski/957814/ltcube_356227201_356486401_4FGL_J1927.5+6117_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/957814/Model_4FGL_J1927.5+6117_daily_bin451.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1927.5+6117'

4FGL J1927.5+6117
   Spectrum: LogParabola
316         norm:  4.668e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
317        alpha:  2.108e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
318         beta:  7.647e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
319           Eb:  1.576e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/957814/ft1_filtered_4FGL_J1927.5+6117_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/957814/ft2_4FGL_J1927.5+6117_daily_bin451.fits
Exposure map: /scratch/kocevski/957814/expmap_356227201_356486401_4FGL_J1927.5+6117_daily_bin451.fits
Exposure cube: /scratch/kocevski/957814/ltcube_356227201_356486401_4FGL_J1927.5+6117_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/957814/Model_4FGL_J1927.5+6117_daily_bin451.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) = 3236.44104798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14372E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    10.375       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    85.804       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0695       1.0000         .10000E-03   10000.    
     6 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10677E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    88.145       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11185E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19388E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11635E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26214E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.079       1.0000         .10000E-03   10000.    
    19 'norm      '    .68386       1.0000         .10000E-03   10000.    
    20 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10239E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    13.162       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .68115       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0663       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3236.406     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3570 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10025E-03    535.79       -.12214E-03** at limit **
   2  norm          10.373        16.118       -.29181E-06    .11579E-03
   3  Prefactor     .10000E-03    20.845       -.80785E-07** at limit **
   4  Prefactor     85.698        482.15        .46172E-05    .20684E-04
   5  Prefactor     8.0629        15.764       -.55775E-06    .11690E-03
   6  norm          .10000E-03    5.0632       -.20373E-06** at limit **
   7  Prefactor     .10000E-03    23.518       -.51935E-06** at limit **
   8  Prefactor     88.149        48.272        .70353E-07    .26070E-03
   9  Prefactor     .10000E-03    25.620       -.38117E-06** at limit **
  10  Prefactor     .10001E-03    194.17       -.53162E-05** at limit **
  11  Prefactor     .10000E-03    97.737        .13701E-05** at limit **
  12  norm          .10000E-03    3.1573       -.37551E-06** at limit **
  13  norm          .10000E-03    1.9118       -.25630E-06** at limit **
  14  norm          .10000E-03    4.2232       -.99361E-07** at limit **
  15  norm          .10000E-03    9.7558       -.25874E-06** at limit **
  16  Prefactor     .10002E-03    141.44       -.26146E-05** at limit **
  17  Prefactor     .10001E-03    16.326        .91629E-05** at limit **
  18  Prefactor     12.980        53.216        .27618E-05    .91641E-04
  19  norm          .68345        2.4974       -.91841E-06    .11722E-02
  20  norm          .10000E-03    50.854       -.38670E-06** at limit **
  21  norm          .10000E-03    10.660        .13272E-06** at limit **
  22  Prefactor     .10000E-03    27.180        .91281E-06** at limit **
  23  norm          .10000E-03    10.349       -.30349E-06** at limit **
  24  norm          13.157        19.432       -.33103E-06    .20902E-04
  25  Normalizat    .68153        .40646        .74769E-05    .31447E-03
  26  Prefactor     1.0663        .12414        .31129E-06    .14308E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100251
  norm       = 10.373
  Prefactor  = 0.0001
  Prefactor  = 85.6984
  Prefactor  = 8.06287
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.1486
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.00010001
  Prefactor  = 12.9801
  norm       = 0.683452
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 13.1572
  Normalizat = 0.681526
  Prefactor  = 1.06632
 **********
 **   18 **HESSE 
 **********

 FCN=   3236.406     FROM HESSE     STATUS=OK           462 CALLS     4032 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10025E-03    50.260        .88480E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.373        16.072        .12439E-03   -1.5064    
   3  Prefactor     .10000E-03    20.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     85.698        481.63        .21685E-03   -1.3854    
   5  Prefactor     8.0629        15.691        .14114E-03   -1.5140    
   6  norm          .10000E-03    5.0666        .12504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     88.149        48.263        .42795E-04   -1.3827    
   9  Prefactor     .10000E-03    25.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    194.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    97.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.1696        .98765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.9188        .76863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.2244        .11419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.7613        .17358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    146.90        .42892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    14.283        .59182E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.980        53.640        .11076E-03   -1.4987    
  19  norm          .68345        2.4758        .16698E-03   -1.5543    
  20  norm          .10000E-03    50.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    10.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    27.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    10.533        .17870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.157        19.460        .11041E-03   -1.4982    
  25  Normalizat    .68153        .43433        .54447E-03   -1.0463    
  26  Prefactor     1.0663        .13043        .14500E-03   -.90550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81944e-09
Minuit parameter uncertainties:
  1  0.00710987
  2  16.0786
  3  0.000103164
  4  411.501
  5  15.6992
  6  1.15101e-05
  7  8.82392e-05
  8  48.2843
  9  0.000118541
  10  0.00287973
  11  0.000466086
  12  5.2142e-05
  13  1.07955e-05
  14  3.35786e-06
  15  1.84245e-05
  16  0.00335002
  17  0.000752576
  18  52.8549
  19  2.47618
  20  8.43582e-05
  21  4.84061e-05
  22  0.000486785
  23  2.22206e-05
  24  19.4691
  25  0.436541
  26  0.130467
Done.

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

Extracting fit parameters...

4FGL J1927.5+6117
   Spectrum: LogParabola
316         norm:  1.000e-04  1.842e-05  1.000e-04  1.000e+04 ( 1.000e-13)
317        alpha:  2.108e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
318         beta:  7.647e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
319           Eb:  1.576e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.066e+00  1.305e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
648   Normalization:  6.815e-01  4.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 291.882 61.294
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/957814/likelihoodResults_356227201_356486401_4FGL_J1927.5+6117_daily_bin451.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) = 3236.40641189
delta logL = -0.000487389212594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3236.40592469
delta logL = -1.9153503672e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10462E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0933       1.0000          .0000       5.0000    
     3 'Normalizat'    .68156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0663       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6630E+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=   3236.406     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      236 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    382.95        .17519E-01** at limit **
   2  alpha         1.5601        3.2125        .16745       -.20708E-08
   3  Normalizat    .68152        .64903E-01    .54446E-03    .90830E-06
   4  Prefactor     1.0663        .21426E-01    .14500E-03    .94870E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.5601
  Normalizat = 0.681523
  Prefactor  = 1.06632
 **********
 **   18 **HESSE 
 **********

 FCN=   3236.406     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.798        .19049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5601        3.9770        .66978E-02   -.38543    
   3  Normalizat    .68152        .37910        .21779E-04   -1.0463    
   4  Prefactor     1.0663        .12559        .58000E-05   -.90550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57641e-11
Minuit parameter uncertainties:
  1  2.91826e-05
  2  401.555
  3  0.38057
  4  0.125624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957814': 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) = 3236.40592363
delta logL = 8.68551524036e-07

Extracting fit parameters...

4FGL J1927.5+6117
   Spectrum: LogParabola
316         norm:  1.000e-04  2.918e-05  1.000e-04  1.000e+04 ( 1.000e-13)
317        alpha:  1.560e+00  4.016e+02  0.000e+00  5.000e+00 ( 1.000e+00)
318         beta:  7.647e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
319           Eb:  1.576e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.066e+00  1.256e-01  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
648   Normalization:  6.815e-01  3.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 291.882 61.294

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/957814/cmap_HighResolution_356227201_356486401_4FGL_J1927.5+6117_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.48e-05', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-23 00:55:53.436595', job_id='957814', GAL2='1.07', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632383753.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='8.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='451' AND source_name='4FGL J1927.5+6117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:55:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 957814: <4FGL_J1927.5+6117_daily_bin451> in cluster <slac> Done

Job <4FGL_J1927.5+6117_daily_bin451> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 23 00:41:49 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:42:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:42:05 2021
Terminated at Thu Sep 23 00:55:54 2021
Results reported at Thu Sep 23 00:55:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1927.5+6117_daily_bin451 291.882 61.294 356227201 356486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1927.5+6117 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   608.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            845 sec.

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

