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


Performing analysis on: 4FGL_J1927.5+6117_daily_bin743
RA = 291.882, Dec = 61.294
tmin = 431913601, tmax = 432172801
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='959245', job_status='RUN', time_executed='2021-09-23 00:50:15.795554', time_epoch_executed='1632383415.8' WHERE source_name='4FGL J1927.5+6117' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/959245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/959245/ft1_4FGL_J1927.5+6117_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/959245/ft2_4FGL_J1927.5+6117_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/959245/ft1_4FGL_J1927.5+6117_daily_bin743.fits outfile=/scratch/kocevski/959245/ft1_filteredMKT_4FGL_J1927.5+6117_daily_bin743.fits ra=291.882 dec=61.294 rad=12.0 tmin=431913601.0 tmax=432172801.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.47
user 4.19
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/959245/ft2_4FGL_J1927.5+6117_daily_bin743.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/959245/ft1_filteredMKT_4FGL_J1927.5+6117_daily_bin743.fits evtable="EVENTS" outfile="/scratch/kocevski/959245/ft1_filtered_4FGL_J1927.5+6117_daily_bin743.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.44
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/959245/ft1_filtered_4FGL_J1927.5+6117_daily_bin743.fits" evtable="EVENTS" scfile=/scratch/kocevski/959245/ft2_4FGL_J1927.5+6117_daily_bin743.fits sctable="SC_DATA" outfile=/scratch/kocevski/959245/ltcube_431913601_432172801_4FGL_J1927.5+6117_daily_bin743.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/959245/ft2_4FGL_J1927.5+6117_daily_bin743.fits
.....................!
real 11.46
user 11.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/959245/ft1_filtered_4FGL_J1927.5+6117_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/959245/ft2_4FGL_J1927.5+6117_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/959245/ltcube_431913601_432172801_4FGL_J1927.5+6117_daily_bin743.fits outfile=/scratch/kocevski/959245/expmap_431913601_432172801_4FGL_J1927.5+6117_daily_bin743.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/959245/ltcube_431913601_432172801_4FGL_J1927.5+6117_daily_bin743.fits
.....................!
real 156.35
user 151.55
sys 4.46

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/959245/ft1_filtered_4FGL_J1927.5+6117_daily_bin743.fits scfile=/scratch/kocevski/959245/ft2_4FGL_J1927.5+6117_daily_bin743.fits outfile=/scratch/kocevski/959245/cmap_431913601_432172801_4FGL_J1927.5+6117_daily_bin743.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
real 0.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/959245/ft1_filtered_4FGL_J1927.5+6117_daily_bin743.fits scfile=/scratch/kocevski/959245/ft2_4FGL_J1927.5+6117_daily_bin743.fits outfile=/scratch/kocevski/959245/cmap_HighResolution_431913601_432172801_4FGL_J1927.5+6117_daily_bin743.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
real 0.50
user 0.33
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/959245/ft1_filtered_4FGL_J1927.5+6117_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/959245/ft2_4FGL_J1927.5+6117_daily_bin743.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/959245/Model_4FGL_J1927.5+6117_daily_bin743.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/959245/ft1_filtered_4FGL_J1927.5+6117_daily_bin743.fits.....................!
real 72.02
user 70.43
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/959245/ft1_filtered_4FGL_J1927.5+6117_daily_bin743.fits', '/scratch/kocevski/959245/ft2_4FGL_J1927.5+6117_daily_bin743.fits', expMap='/scratch/kocevski/959245/expmap_431913601_432172801_4FGL_J1927.5+6117_daily_bin743.fits', expCube='/scratch/kocevski/959245/ltcube_431913601_432172801_4FGL_J1927.5+6117_daily_bin743.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/959245/Model_4FGL_J1927.5+6117_daily_bin743.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/959245/ft1_filtered_4FGL_J1927.5+6117_daily_bin743.fits
Spacecraft file(s): /scratch/kocevski/959245/ft2_4FGL_J1927.5+6117_daily_bin743.fits
Exposure map: /scratch/kocevski/959245/expmap_431913601_432172801_4FGL_J1927.5+6117_daily_bin743.fits
Exposure cube: /scratch/kocevski/959245/ltcube_431913601_432172801_4FGL_J1927.5+6117_daily_bin743.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/959245/Model_4FGL_J1927.5+6117_daily_bin743.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) = 6987.38606375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    16.443       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1761       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.8743       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.568       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.586       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4413       1.0000         .10000E-03   10000.    
    13 'norm      '    9.0261       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.5138       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2109       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    77.673       1.0000         .10000E-03   10000.    
    19 'norm      '    2.6978       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.1384       1.0000         .10000E-03   10000.    
    23 'norm      '    5.2045       1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0121       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91325       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=   6987.374     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3050 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9043        .64143E-08** at limit **
   2  norm          16.445        8.3738       -.80304E-08   -.11917E-04
   3  Prefactor     6.1663        23.387       -.16805E-06   -.40562E-04
   4  Prefactor     .10000E-03    47.782        .77193E-06** at limit **
   5  Prefactor     .10000E-03    4.8432        .76239E-07** at limit **
   6  norm          9.8730        11.501       -.50780E-08   -.70172E-05
   7  Prefactor     .10000E-03    39.180       -.61705E-06** at limit **
   8  Prefactor     23.567        16.167       -.25826E-07   -.51609E-05
   9  Prefactor     .10000E-03    8.3403       -.69278E-07** at limit **
  10  Prefactor     .10000E-03    44.780        .51700E-06** at limit **
  11  Prefactor     70.586        79.397       -.49338E-08    .15410E-05
  12  norm          5.4409        3.3921        .67171E-08   -.28398E-04
  13  norm          9.0260        5.1191       -.98892E-08    .60596E-05
  14  norm          .10000E-03    8.5999       -.30502E-06** at limit **
  15  norm          7.5018        27.180       -.25466E-06   -.54387E-04
  16  Prefactor     3.2027        43.492       -.82920E-06   -.29642E-04
  17  Prefactor     .10000E-03    3.3173        .70649E-06** at limit **
  18  Prefactor     77.658        89.271       -.50419E-06   -.58351E-04
  19  norm          2.6973        1.9998        .82942E-06   -.33420E-04
  20  norm          .10000E-03    14.183        .10266E-07** at limit **
  21  norm          .10000E-03    61.789       -.15648E-05** at limit **
  22  Prefactor     7.1238        21.152       -.20325E-05   -.53697E-04
  23  norm          5.2059        4.8610        .18136E-06   -.23778E-03
  24  norm          .10000E-03    6.9699       -.52725E-07** at limit **
  25  Normalizat    1.0123        .28661        .35045E-06   -.66616E-04
  26  Prefactor     .91320        .79770E-01   -.23683E-06   -.99662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 16.4454
  Prefactor  = 6.16627
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 9.87297
  Prefactor  = 0.000100001
  Prefactor  = 23.5667
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 70.5863
  norm       = 5.44087
  norm       = 9.02595
  norm       = 0.0001
  norm       = 7.50181
  Prefactor  = 3.20267
  Prefactor  = 0.000100002
  Prefactor  = 77.6582
  norm       = 2.69732
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 7.1238
  norm       = 5.2059
  norm       = 0.0001
  Normalizat = 1.01226
  Prefactor  = 0.9132
 **********
 **   18 **HESSE 
 **********

 FCN=   6987.374     FROM HESSE     STATUS=OK           458 CALLS     3508 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.445        8.4073        .98770E-04   -1.4897    
   3  Prefactor     6.1663        23.421        .16154E-03   -1.5211    
   4  Prefactor     .10000E-03    47.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8952        .17920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.8730        11.513        .12752E-03   -1.5079    
   7  Prefactor     .10000E-03    39.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.567        16.185        .82510E-04   -1.4737    
   9  Prefactor     .10000E-03    8.3586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    44.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     70.586        79.408        .47780E-04   -1.4026    
  12  norm          5.4409        3.3926        .11623E-03   -1.5241    
  13  norm          9.0260        5.1196        .13341E-03   -1.5107    
  14  norm          .10000E-03    8.6060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.5018        27.180        .14631E-03   -1.5160    
  16  Prefactor     3.2027        42.924        .22610E-03   -1.5350    
  17  Prefactor     .10000E-03    6.7469        .27542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     77.658        89.356        .45565E-04   -1.3943    
  19  norm          2.6973        2.0264        .46700E-03   -1.5379    
  20  norm          .10000E-03    14.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    62.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.1238        21.069        .15014E-03   -1.5174    
  23  norm          5.2059        4.7736        .16714E-03   -1.5252    
  24  norm          .10000E-03    7.0520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0123        .30346        .45981E-03   -.92621    
  26  Prefactor     .91320        .85516E-01    .15100E-03   -.95681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.352e-10
Minuit parameter uncertainties:
  1  5.41665e-06
  2  8.40792
  3  23.4554
  4  0.000533705
  5  1.1585e-07
  6  11.5158
  7  0.000421155
  8  16.188
  9  3.1126e-05
  10  0.000328737
  11  79.5279
  12  3.39277
  13  5.11982
  14  3.17467e-05
  15  27.2249
  16  23.4699
  17  0.000235753
  18  89.5112
  19  2.02648
  20  1.48866e-06
  21  0.000733744
  22  21.0906
  23  4.774
  24  1.86982e-05
  25  0.303979
  26  0.085529
Done.

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

Extracting fit parameters...

4FGL J1927.5+6117
   Spectrum: LogParabola
316         norm:  7.502e+00  2.722e+01  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:  9.132e-01  8.553e-02  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:  1.012e+00  3.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 291.882 61.294
Photon Flux Upper Limit: 1.80e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/959245/likelihoodResults_431913601_432172801_4FGL_J1927.5+6117_daily_bin743.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) = 6985.50126158
delta logL = 1.87315228793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6985.49892141
delta logL = 1.87549246599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7772       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9758       1.0000          .0000       5.0000    
     3 'Normalizat'    .87490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93211       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.

 FCN=   6985.499     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      320 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7732        19.481        .78499E-02    .42814E-03
   2  alpha         3.9768        4.0467        .24145        .12656E-04
   3  Normalizat    .87494        .99290E-01    .11056       -.63837E-04
   4  Prefactor     .93210        .30371E-01    .33832E-01   -.21009E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.77323
  alpha      = 3.97679
  Normalizat = 0.874937
  Prefactor  = 0.9321
 **********
 **   18 **HESSE 
 **********

 FCN=   6985.499     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      351 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7732        35.532        .67125E-04   -1.5442    
   2  alpha         3.9768        4.4393        .10133E-01    .63194    
   3  Normalizat    .87494        .26550        .49023E-03   -.97346    
   4  Prefactor     .93210        .81420E-01    .14950E-03   -.95028    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.5797e-09
Minuit parameter uncertainties:
  1  15.8857
  2  3.87627
  3  0.265896
  4  0.0814309
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/959245': 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) = 6985.49892082
delta logL = 1.87549305193

Extracting fit parameters...

4FGL J1927.5+6117
   Spectrum: LogParabola
316         norm:  1.773e+00  1.589e+01  1.000e-04  1.000e+04 ( 1.000e-13)
317        alpha:  3.977e+00  3.876e+00  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:  9.321e-01  8.143e-02  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:  8.749e-01  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.13
Ra Dec: 291.882 61.294
Photon Index (Free Index): 3.98 +/- 3.88
Photon Flux (Free Index): 2.20e-07 +/- 1.55e-07
Energy Flux (Free Index): 3.49e-05 +/- 2.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/959245/cmap_HighResolution_431913601_432172801_4FGL_J1927.5+6117_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', comment='SUCCESS', energy_flux2='3.49e-05', dlogl='1.88e+00', photon_flux2='2.20e-07', job_status='DONE', time_completed='2021-09-23 01:02:25.073473', photon_index_error2='3.88', photon_index2='3.98', ts='0.09', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='2.81e-05', EG='1.01', time_epoch_completed='1632384145.07', return_code='0', job_id='959245', GAL2='0.93', EG2='0.87', return_code2='102', photon_flux_error2='1.55e-07', ts2='4.13', photon_index='2.11' WHERE bin_id='743' AND source_name='4FGL J1927.5+6117' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 01:02:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 959245: <4FGL_J1927.5+6117_daily_bin743> in cluster <slac> Done

Job <4FGL_J1927.5+6117_daily_bin743> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 23 00:46:35 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:47:12 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:47:12 2021
Terminated at Thu Sep 23 01:02:25 2021
Results reported at Thu Sep 23 01:02:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1927.5+6117_daily_bin743 291.882 61.294 431913601 432172801 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 :                                   728.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            950 sec.

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

