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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin478
RA = 171.964, Dec = 36.314
tmin = 363225601, tmax = 363484801
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='806850', job_status='RUN', time_executed='2021-09-03 21:48:44.296682', time_epoch_executed='1630730924.3' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806850/ft1_4FGL_J1127.8+3618_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806850/ft2_4FGL_J1127.8+3618_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806850/ft1_4FGL_J1127.8+3618_daily_bin478.fits outfile=/scratch/kocevski/806850/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin478.fits ra=171.964 dec=36.314 rad=12.0 tmin=363225601.0 tmax=363484801.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 7.15
user 6.76
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/806850/ft2_4FGL_J1127.8+3618_daily_bin478.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806850/ft2_4FGL_J1127.8+3618_daily_bin478.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/806850/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin478.fits evtable="EVENTS" outfile="/scratch/kocevski/806850/ft1_filtered_4FGL_J1127.8+3618_daily_bin478.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.56
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806850/ft1_filtered_4FGL_J1127.8+3618_daily_bin478.fits" evtable="EVENTS" scfile=/scratch/kocevski/806850/ft2_4FGL_J1127.8+3618_daily_bin478.fits sctable="SC_DATA" outfile=/scratch/kocevski/806850/ltcube_363225601_363484801_4FGL_J1127.8+3618_daily_bin478.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/806850/ft2_4FGL_J1127.8+3618_daily_bin478.fits
.....................!
real 17.63
user 17.05
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806850/ft1_filtered_4FGL_J1127.8+3618_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/806850/ft2_4FGL_J1127.8+3618_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/806850/ltcube_363225601_363484801_4FGL_J1127.8+3618_daily_bin478.fits outfile=/scratch/kocevski/806850/expmap_363225601_363484801_4FGL_J1127.8+3618_daily_bin478.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/806850/ltcube_363225601_363484801_4FGL_J1127.8+3618_daily_bin478.fits
.....................!
real 193.70
user 187.30
sys 4.11

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 202 point sources and 0 extended sources

Setting source of interest to:
4FGL J1127.8+3618 @ 171.964 36.314

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/806850/ft1_filtered_4FGL_J1127.8+3618_daily_bin478.fits scfile=/scratch/kocevski/806850/ft2_4FGL_J1127.8+3618_daily_bin478.fits outfile=/scratch/kocevski/806850/cmap_363225601_363484801_4FGL_J1127.8+3618_daily_bin478.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=171.964 yref=36.314 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806850/ft1_filtered_4FGL_J1127.8+3618_daily_bin478.fits scfile=/scratch/kocevski/806850/ft2_4FGL_J1127.8+3618_daily_bin478.fits outfile=/scratch/kocevski/806850/cmap_HighResolution_363225601_363484801_4FGL_J1127.8+3618_daily_bin478.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=171.964 yref=36.314 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806850/ft1_filtered_4FGL_J1127.8+3618_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/806850/ft2_4FGL_J1127.8+3618_daily_bin478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806850/Model_4FGL_J1127.8+3618_daily_bin478.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/806850/ft1_filtered_4FGL_J1127.8+3618_daily_bin478.fits.....................!
real 46.31
user 44.50
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806850/ft1_filtered_4FGL_J1127.8+3618_daily_bin478.fits', '/scratch/kocevski/806850/ft2_4FGL_J1127.8+3618_daily_bin478.fits', expMap='/scratch/kocevski/806850/expmap_363225601_363484801_4FGL_J1127.8+3618_daily_bin478.fits', expCube='/scratch/kocevski/806850/ltcube_363225601_363484801_4FGL_J1127.8+3618_daily_bin478.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806850/Model_4FGL_J1127.8+3618_daily_bin478.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.8+3618'

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/806850/ft1_filtered_4FGL_J1127.8+3618_daily_bin478.fits
Spacecraft file(s): /scratch/kocevski/806850/ft2_4FGL_J1127.8+3618_daily_bin478.fits
Exposure map: /scratch/kocevski/806850/expmap_363225601_363484801_4FGL_J1127.8+3618_daily_bin478.fits
Exposure cube: /scratch/kocevski/806850/ltcube_363225601_363484801_4FGL_J1127.8+3618_daily_bin478.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806850/Model_4FGL_J1127.8+3618_daily_bin478.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) = 4226.31014733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2151       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0591       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.994       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.345       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0167       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2108       1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.530       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.711       1.0000         .10000E-03   10000.    
    13 'norm      '    16.737       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.774       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50421       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.0896       1.0000         .10000E-03   10000.    
    22 'Prefactor '    55.966       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.2860       1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.272       1.0000         .10000E-03   10000.    
    26 'norm      '    2.8513       1.0000         .10000E-03   10000.    
    27 'Prefactor '    86.424       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1207       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .42430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4226.255     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3906 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.517       -.84947E-06** at limit **
   2  Prefactor     6.2156        4.8005        .57590E-07   -.22888E-04
   3  Prefactor     7.0606        6.2964       -.23344E-06   -.19722E-03
   4  Prefactor     39.000        35.574        .40417E-05   -.93898E-05
   5  Prefactor     .10000E-03    45.406       -.10466E-05** at limit **
   6  Prefactor     .10000E-03    88.956        .55910E-05** at limit **
   7  Prefactor     11.344        12.737        .20931E-06    .55720E-06
   8  norm          3.0167        .55833       -.25378E-07    .16882E-02
   9  Prefactor     9.2113        5.8791       -.10254E-06   -.27108E-04
  10  Prefactor     46.535        34.015        .35774E-05    .10141E-03
  11  Prefactor     .10000E-03    14.374       -.17465E-06** at limit **
  12  norm          23.712        24.717       -.57896E-06    .16029E-03
  13  norm          16.741        25.426        .92098E-06    .16326E-04
  14  Prefactor     10.775        4.6145        .36573E-06    .14840E-02
  15  Prefactor     .10000E-03    19.586       -.12069E-05** at limit **
  16  Prefactor     .10000E-03    16.603        .12037E-05** at limit **
  17  norm          .10000E-03    1.3135        .21806E-07** at limit **
  18  Prefactor     .10000E-03    17.359        .27554E-05** at limit **
  19  Prefactor     .50880        7.3393       -.85012E-05    .34684E-03
  20  Prefactor     .10000E-03    15.298       -.21777E-05** at limit **
  21  norm          1.0895        1.0581       -.81108E-06    .56811E-03
  22  Prefactor     55.975        46.475        .62400E-05    .45336E-04
  23  norm          .10000E-03    6.5281       -.18356E-06** at limit **
  24  Prefactor     9.3204        52.723        .63532E-04    .15732E-03
  25  Prefactor     33.294        63.022        .29739E-04    .10608E-04
  26  norm          2.8514        1.9364       -.40326E-06    .13467E-04
  27  Prefactor     86.416        64.383       -.10403E-04    .51244E-04
  28  Prefactor     .10000E-03    7.2963        .24784E-07** at limit **
  29  Normalizat    1.1205        .23288       -.48605E-05    .53267E-03
  30  Prefactor     .42457        .24391        .12030E-05    .48496E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.21558
  Prefactor  = 7.06055
  Prefactor  = 38.9996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3444
  norm       = 3.01674
  Prefactor  = 9.21133
  Prefactor  = 46.5353
  Prefactor  = 0.0001
  norm       = 23.7116
  norm       = 16.7407
  Prefactor  = 10.7745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.508797
  Prefactor  = 0.0001
  norm       = 1.08952
  Prefactor  = 55.9748
  norm       = 0.0001
  Prefactor  = 9.32038
  Prefactor  = 33.2942
  norm       = 2.85135
  Prefactor  = 86.4157
  Prefactor  = 0.0001
  Normalizat = 1.12047
  Prefactor  = 0.424566
 **********
 **   18 **HESSE 
 **********

 FCN=   4226.255     FROM HESSE     STATUS=OK           582 CALLS     4488 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2156        4.8066        .11987E-03   -1.5209    
   3  Prefactor     7.0606        6.3118        .14479E-03   -1.5176    
   4  Prefactor     39.000        35.547        .64187E-04   -1.4458    
   5  Prefactor     .10000E-03    45.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    89.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.344        12.732        .11894E-03   -1.5034    
   8  norm          3.0167        .56120        .95164E-04   -1.5361    
   9  Prefactor     9.2113        5.8725        .11595E-03   -1.5101    
  10  Prefactor     46.535        34.163        .58781E-04   -1.4343    
  11  Prefactor     .10000E-03    14.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.712        24.672        .82262E-04   -1.4734    
  13  norm          16.741        25.440        .97900E-04   -1.4889    
  14  Prefactor     10.775        4.5847        .84498E-04   -1.5051    
  15  Prefactor     .10000E-03    19.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.3263        .72704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .50880        16.424        .32175E-02   -1.5565    
  20  Prefactor     .10000E-03    15.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.0895        1.0738        .60849E-04   -1.5499    
  22  Prefactor     55.975        46.505        .53621E-04   -1.4210    
  23  norm          .10000E-03    6.5363        .16222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.3204        53.202        .13152E-03   -1.5097    
  25  Prefactor     33.294        62.893        .69469E-04   -1.4553    
  26  norm          2.8514        1.9382        .71633E-04   -1.5370    
  27  Prefactor     86.416        64.476        .43215E-04   -1.3846    
  28  Prefactor     .10000E-03    7.3102        .17150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1205        .26511        .24470E-03   -.89097    
  30  Prefactor     .42457        .27076        .41465E-03   -1.1557    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64236e-09
Minuit parameter uncertainties:
  1  1.48973e-05
  2  4.80689
  3  6.31236
  4  35.5663
  5  0.000132952
  6  0.000146168
  7  12.7347
  8  0.561198
  9  5.87284
  10  34.1774
  11  1.97001e-05
  12  24.6822
  13  25.4566
  14  4.58484
  15  3.16681e-06
  16  2.35923e-05
  17  2.50789e-06
  18  7.54288e-05
  19  5.78275
  20  5.70338e-06
  21  1.07384
  22  46.5347
  23  4.91504e-05
  24  44.5962
  25  63.0189
  26  1.93825
  27  64.5284
  28  1.1258e-05
  29  0.265431
  30  0.27158
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.077e+01  4.585e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  4.246e-01  2.716e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.120e+00  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.95
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 6.52e-08
Energy Flux (Fixed Index): 5.22e-05 +/- 2.22e-05

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) = 4226.25295213
delta logL = 0.00242641514978

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4226.25171223
delta logL = 0.00366631943234

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.031       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3409       1.0000          .0000       10.000    
     3 'Normalizat'    1.1227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+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=   4226.252     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      238 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.031        5.5171        .85830E-04   -.11180E-02
   2  Index         2.3410        .35705        .41248E-02   -.26880E-03
   3  Normalizat    1.1227        .24596        .24452E-03    .43472E-04
   4  Prefactor     .42297        .26435        .41541E-03    .29147E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0308
  Index      = 2.341
  Normalizat = 1.12273
  Prefactor  = 0.422973
 **********
 **   18 **HESSE 
 **********

 FCN=   4226.252     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.031        5.4304        .17166E-04   -1.5044    
   2  Index         2.3410        .35136        .16499E-03   -.56072    
   3  Normalizat    1.1227        .24604        .97807E-05   -.89025    
   4  Prefactor     .42297        .26443        .16616E-04   -1.1565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29872e-10
Minuit parameter uncertainties:
  1  5.43062
  2  0.351761
  3  0.246291
  4  0.265199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806850': 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) = 4226.25171208
delta logL = 0.00366646706243

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.103e+01  5.431e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.341e+00  3.518e-01  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  4.230e-01  2.652e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.123e+00  2.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.82
Ra Dec: 171.964 36.314
Photon Index (Free Index): 2.34 +/- 0.35
Photon Flux (Free Index): 1.50e-07 +/- 7.29e-08
Energy Flux (Free Index): 5.34e-05 +/- 2.61e-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/806850/cmap_HighResolution_363225601_363484801_4FGL_J1127.8+3618_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='5.34e-05', photon_flux_error='6.52e-08', dlogl='3.67e-03', energy_flux='5.22e-05', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-03 22:00:06.961670', photon_index_error2='0.35', photon_index2='2.34', ts='18.95', fit_tolerance='1e-08', GAL='0.42', photon_index_error='0.00', energy_flux_error2='2.61e-05', EG='1.12', time_epoch_completed='1630731606.96', return_code='0', job_id='806850', GAL2='0.42', EG2='1.12', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='7.29e-08', ts2='18.82', photon_index='2.37' WHERE bin_id='478' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:00:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 806850: <4FGL_J1127.8+3618_daily_bin478> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin478> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep  3 21:46:25 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:46:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 21:46:31 2021
Terminated at Fri Sep  3 22:00:07 2021
Results reported at Fri Sep  3 22:00:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin478 171.964 36.314 363225601 363484801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.8+3618 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   673.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            822 sec.

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

