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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin927
RA = 171.964, Dec = 36.314
tmin = 479606401, tmax = 479865601
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='809565', job_status='RUN', time_executed='2021-09-03 21:59:06.411483', time_epoch_executed='1630731546.41' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809565/ft1_4FGL_J1127.8+3618_daily_bin927.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809565/ft2_4FGL_J1127.8+3618_daily_bin927.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809565/ft1_4FGL_J1127.8+3618_daily_bin927.fits outfile=/scratch/kocevski/809565/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin927.fits ra=171.964 dec=36.314 rad=12.0 tmin=479606401.0 tmax=479865601.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.48
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809565/ft2_4FGL_J1127.8+3618_daily_bin927.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/809565/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin927.fits evtable="EVENTS" outfile="/scratch/kocevski/809565/ft1_filtered_4FGL_J1127.8+3618_daily_bin927.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.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809565/ft1_filtered_4FGL_J1127.8+3618_daily_bin927.fits" evtable="EVENTS" scfile=/scratch/kocevski/809565/ft2_4FGL_J1127.8+3618_daily_bin927.fits sctable="SC_DATA" outfile=/scratch/kocevski/809565/ltcube_479606401_479865601_4FGL_J1127.8+3618_daily_bin927.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/809565/ft2_4FGL_J1127.8+3618_daily_bin927.fits
.....................!
real 15.40
user 15.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809565/ft1_filtered_4FGL_J1127.8+3618_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/809565/ft2_4FGL_J1127.8+3618_daily_bin927.fits sctable="SC_DATA" expcube=/scratch/kocevski/809565/ltcube_479606401_479865601_4FGL_J1127.8+3618_daily_bin927.fits outfile=/scratch/kocevski/809565/expmap_479606401_479865601_4FGL_J1127.8+3618_daily_bin927.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/809565/ltcube_479606401_479865601_4FGL_J1127.8+3618_daily_bin927.fits
.....................!
real 194.04
user 188.73
sys 4.80

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/809565/ft1_filtered_4FGL_J1127.8+3618_daily_bin927.fits scfile=/scratch/kocevski/809565/ft2_4FGL_J1127.8+3618_daily_bin927.fits outfile=/scratch/kocevski/809565/cmap_479606401_479865601_4FGL_J1127.8+3618_daily_bin927.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.55
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809565/ft1_filtered_4FGL_J1127.8+3618_daily_bin927.fits scfile=/scratch/kocevski/809565/ft2_4FGL_J1127.8+3618_daily_bin927.fits outfile=/scratch/kocevski/809565/cmap_HighResolution_479606401_479865601_4FGL_J1127.8+3618_daily_bin927.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.57
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809565/ft1_filtered_4FGL_J1127.8+3618_daily_bin927.fits', '/scratch/kocevski/809565/ft2_4FGL_J1127.8+3618_daily_bin927.fits', expMap='/scratch/kocevski/809565/expmap_479606401_479865601_4FGL_J1127.8+3618_daily_bin927.fits', expCube='/scratch/kocevski/809565/ltcube_479606401_479865601_4FGL_J1127.8+3618_daily_bin927.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809565/Model_4FGL_J1127.8+3618_daily_bin927.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/809565/ft1_filtered_4FGL_J1127.8+3618_daily_bin927.fits
Spacecraft file(s): /scratch/kocevski/809565/ft2_4FGL_J1127.8+3618_daily_bin927.fits
Exposure map: /scratch/kocevski/809565/expmap_479606401_479865601_4FGL_J1127.8+3618_daily_bin927.fits
Exposure cube: /scratch/kocevski/809565/ltcube_479606401_479865601_4FGL_J1127.8+3618_daily_bin927.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809565/Model_4FGL_J1127.8+3618_daily_bin927.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) = 5309.20478921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8243       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2959       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.526       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .93960       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9232       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.471       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.294       1.0000         .10000E-03   10000.    
    12 'norm      '    24.776       1.0000         .10000E-03   10000.    
    13 'norm      '    7.3078       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9776       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4413       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8040       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6557       1.0000         .10000E-03   10000.    
    21 'norm      '    .75596E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.780       1.0000         .10000E-03   10000.    
    23 'norm      '    6.5462       1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.896       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.4094       1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.149       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .62070       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .61651       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0810       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=   5309.188     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3970 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8283        18.981        .51067E-06    .80857E-04
   2  Prefactor     5.2986        6.5921        .10662E-05    .36830E-03
   3  Prefactor     .10000E-03    2.0047       -.99751E-07** at limit **
   4  Prefactor     .10000E-03    39.461       -.34482E-05** at limit **
   5  Prefactor     30.530        27.858        .15849E-07   -.36148E-04
   6  Prefactor     .10000E-03    66.781        .14510E-05** at limit **
   7  Prefactor     .10000E-03    25.800        .40036E-07** at limit **
   8  norm          .93960        .29790        .58883E-08   -.91449E-04
   9  Prefactor     2.9248        2.4971       -.27616E-06   -.10116E-02
  10  Prefactor     14.473        16.692        .64775E-07   -.16191E-05
  11  Prefactor     16.294        14.172        .49895E-07    .58795E-05
  12  norm          24.777        18.598       -.75605E-07   -.16750E-04
  13  norm          7.3089        10.729       -.17408E-06   -.41803E-04
  14  Prefactor     2.9777        2.2842       -.10146E-07    .79623E-04
  15  Prefactor     .10000E-03    22.114       -.74987E-06** at limit **
  16  Prefactor     1.4407        34.987        .16876E-04   -.91942E-04
  17  norm          1.8049        2.6435        .23798E-06    .97162E-04
  18  Prefactor     .10000E-03    9.3819        .86142E-07** at limit **
  19  Prefactor     .10000E-03    2.2790       -.29946E-06** at limit **
  20  Prefactor     7.6505        22.561        .31551E-06   -.17110E-04
  21  norm          .75383E-01    .48084        .94836E-07   -.38643E-03
  22  Prefactor     31.784        21.471       -.25418E-06   -.24324E-04
  23  norm          6.5461        6.6923       -.11834E-06   -.61637E-04
  24  Prefactor     24.883        27.581        .60280E-07   -.41053E-04
  25  Prefactor     .10000E-03    27.668        .10884E-05** at limit **
  26  norm          6.4095        1.6179        .55005E-08   -.13164E-03
  27  Prefactor     21.150        22.400       -.53953E-07   -.25835E-04
  28  Prefactor     .61829        4.3299       -.21686E-06   -.65574E-04
  29  Normalizat    .61618        .17620        .61790E-06   -.53457E-04
  30  Prefactor     1.0814        .19647       -.23727E-05   -.30750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.82833
  Prefactor  = 5.2986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.53
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.939601
  Prefactor  = 2.92481
  Prefactor  = 14.4728
  Prefactor  = 16.2936
  norm       = 24.7769
  norm       = 7.3089
  Prefactor  = 2.97772
  Prefactor  = 0.0001
  Prefactor  = 1.44068
  norm       = 1.8049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.65045
  norm       = 0.0753828
  Prefactor  = 31.7841
  norm       = 6.54606
  Prefactor  = 24.8831
  Prefactor  = 0.0001
  norm       = 6.40947
  Prefactor  = 21.1496
  Prefactor  = 0.618287
  Normalizat = 0.616181
  Prefactor  = 1.08141
 **********
 **   18 **HESSE 
 **********

 FCN=   5309.188     FROM HESSE     STATUS=OK           604 CALLS     4574 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8283        18.943        .12785E-03   -1.5081    
   2  Prefactor     5.2986        6.6796        .17465E-03   -1.5248    
   3  Prefactor     .10000E-03    2.0103        .10054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.530        27.884        .72518E-04   -1.4602    
   6  Prefactor     .10000E-03    66.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.661        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .93960        .29908        .21016E-04   -1.5514    
   9  Prefactor     2.9248        2.4964        .10206E-03   -1.5366    
  10  Prefactor     14.473        16.693        .10529E-03   -1.4947    
  11  Prefactor     16.294        14.202        .99222E-04   -1.4900    
  12  norm          24.777        18.571        .80478E-04   -1.4712    
  13  norm          7.3089        10.733        .14837E-03   -1.5167    
  14  Prefactor     2.9777        2.2695        .89168E-04   -1.5363    
  15  Prefactor     .10000E-03    22.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4407        35.963        .17966E-02   -1.5468    
  17  norm          1.8049        2.5962        .12966E-03   -1.5439    
  18  Prefactor     .10000E-03    9.4714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3046        .10742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.6505        22.339        .14493E-03   -1.5155    
  21  norm          .75383E-01    .79324        .94746E-03   -1.5653    
  22  Prefactor     31.784        21.514        .71076E-04   -1.4580    
  23  norm          6.5461        6.6928        .15685E-03   -1.5196    
  24  Prefactor     24.883        27.707        .80284E-04   -1.4710    
  25  Prefactor     .10000E-03    27.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.4095        1.6178        .44478E-04   -1.5202    
  27  Prefactor     21.150        22.364        .87096E-04   -1.4788    
  28  Prefactor     .61829        16.715        .28972E-02   -1.5551    
  29  Normalizat    .61618        .21080        .26553E-03   -1.0730    
  30  Prefactor     1.0814        .23472        .25108E-03   -.90063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89562e-08
Minuit parameter uncertainties:
  1  18.955
  2  6.68052
  3  8.90813e-06
  4  0.000272669
  5  27.8959
  6  0.000280531
  7  0.000329551
  8  0.299081
  9  2.49653
  10  16.6982
  11  14.2045
  12  18.5751
  13  10.7354
  14  2.26955
  15  2.87739e-05
  16  14.4052
  17  2.59634
  18  1.65307e-05
  19  3.14542e-05
  20  22.3636
  21  0.488751
  22  21.5189
  23  6.69352
  24  27.7214
  25  1.82074e-05
  26  1.61776
  27  22.3731
  28  6.43105
  29  0.211076
  30  0.234948
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  2.978e+00  2.270e+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:  1.081e+00  2.349e-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:  6.162e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.87
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.24e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.10e-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) = 5308.68378339
delta logL = 0.503984516708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5308.66797531
delta logL = 0.519792605422

Fit tolerance = 1e-08

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

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

 FCN=   5308.668     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      210 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4562        2.2984        .65230E-02   -.14484E-03
   2  Index         1.6300        .46880        .24191       -.45148E-04
   3  Normalizat    .64075        .16093        .41494E-01    .22011E-04
   4  Prefactor     1.0715        .19761        .57076E-01    .59840E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.45617
  Index      = 1.62999
  Normalizat = 0.640754
  Prefactor  = 1.07146
 **********
 **   18 **HESSE 
 **********

 FCN=   5308.668     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4562        3.2706        .10297E-03   -1.5395    
   2  Index         1.6300        .79187        .88935E-02   -.73961    
   3  Normalizat    .64075        .18726        .26077E-03   -1.0628    
   4  Prefactor     1.0715        .23023        .25237E-03   -.90384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80549e-12
Minuit parameter uncertainties:
  1  3.27088
  2  0.798066
  3  0.187442
  4  0.23044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809565': 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) = 5308.66797523
delta logL = 0.519792680629

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  2.456e+00  3.271e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.630e+00  7.981e-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:  1.071e+00  2.304e-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:  6.408e-01  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.91
Ra Dec: 171.964 36.314
Photon Index (Free Index): 1.63 +/- 0.80
Photon Flux (Free Index): 1.44e-08 +/- 2.59e-08
Energy Flux (Free Index): 2.96e-05 +/- 4.25e-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/809565/cmap_HighResolution_479606401_479865601_4FGL_J1127.8+3618_daily_bin927.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.24e-08', energy_flux2='2.96e-05', photon_flux_error='3.23e-08', dlogl='5.20e-01', energy_flux='1.44e-05', photon_flux2='1.44e-08', job_status='DONE', time_completed='2021-09-03 22:11:48.172718', photon_index_error2='0.80', photon_index2='1.63', ts='6.87', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='4.25e-05', EG='0.62', time_epoch_completed='1630732308.17', return_code='0', job_id='809565', GAL2='1.07', EG2='0.64', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='2.59e-08', ts2='7.91', photon_index='2.37' WHERE bin_id='927' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:11:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 809565: <4FGL_J1127.8+3618_daily_bin927> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin927> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep  3 21:56:10 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:56:29 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:56:29 2021
Terminated at Fri Sep  3 22:11:49 2021
Results reported at Fri Sep  3 22:11:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin927 171.964 36.314 479606401 479865601 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 :                                   759.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            939 sec.

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

