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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin480
RA = 171.964, Dec = 36.314
tmin = 363744001, tmax = 364003201
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='806852', job_status='RUN', time_executed='2021-09-03 21:50:27.356548', time_epoch_executed='1630731027.36' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806852/ft1_4FGL_J1127.8+3618_daily_bin480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806852/ft2_4FGL_J1127.8+3618_daily_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806852/ft1_4FGL_J1127.8+3618_daily_bin480.fits outfile=/scratch/kocevski/806852/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin480.fits ra=171.964 dec=36.314 rad=12.0 tmin=363744001.0 tmax=364003201.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 2.76
user 2.52
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806852/ft1_filtered_4FGL_J1127.8+3618_daily_bin480.fits" evtable="EVENTS" scfile=/scratch/kocevski/806852/ft2_4FGL_J1127.8+3618_daily_bin480.fits sctable="SC_DATA" outfile=/scratch/kocevski/806852/ltcube_363744001_364003201_4FGL_J1127.8+3618_daily_bin480.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/806852/ft2_4FGL_J1127.8+3618_daily_bin480.fits
.....................!
real 15.87
user 15.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806852/ft1_filtered_4FGL_J1127.8+3618_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/806852/ft2_4FGL_J1127.8+3618_daily_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/806852/ltcube_363744001_364003201_4FGL_J1127.8+3618_daily_bin480.fits outfile=/scratch/kocevski/806852/expmap_363744001_364003201_4FGL_J1127.8+3618_daily_bin480.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/806852/ltcube_363744001_364003201_4FGL_J1127.8+3618_daily_bin480.fits
.....................!
real 158.51
user 153.95
sys 4.03

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/806852/ft1_filtered_4FGL_J1127.8+3618_daily_bin480.fits scfile=/scratch/kocevski/806852/ft2_4FGL_J1127.8+3618_daily_bin480.fits outfile=/scratch/kocevski/806852/cmap_363744001_364003201_4FGL_J1127.8+3618_daily_bin480.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.50
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806852/ft1_filtered_4FGL_J1127.8+3618_daily_bin480.fits scfile=/scratch/kocevski/806852/ft2_4FGL_J1127.8+3618_daily_bin480.fits outfile=/scratch/kocevski/806852/cmap_HighResolution_363744001_364003201_4FGL_J1127.8+3618_daily_bin480.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.50
user 0.33
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.481       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4420       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16522E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8921       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.237       1.0000         .10000E-03   10000.    
     8 'norm      '    5.6882       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .75085E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1756       1.0000         .10000E-03   10000.    
    13 'norm      '    15.437       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6632       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7419       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2670       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .99713       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10694E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    20.453       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.999       1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.509       1.0000         .10000E-03   10000.    
    26 'norm      '    4.9818       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.0125       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85255       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91476       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=   6929.008     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     3417 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.461        21.671       -.39972E-05   -.90177E-03
   2  Prefactor     3.4417        3.7783        .92981E-07   -.18394E-03
   3  Prefactor     .10191E-03    4.4570        .36643E-05** at limit **
   4  Prefactor     3.8875        32.728       -.27372E-06   -.83786E-04
   5  Prefactor     .10000E-03    12.747        .25434E-07** at limit **
   6  Prefactor     .10000E-03    22.358       -.11095E-05** at limit **
   7  Prefactor     21.242        13.655        .82182E-07   -.21840E-04
   8  norm          5.6877        .58761       -.23639E-07   -.16807E-02
   9  Prefactor     .10000E-03    1.1138        .30757E-07** at limit **
  10  Prefactor     .10000E-03    9.0776       -.15125E-05** at limit **
  11  Prefactor     .10000E-03    15.520       -.10256E-06** at limit **
  12  norm          2.1583        18.013        .92929E-05   -.60708E-04
  13  norm          15.440        12.451        .96589E-07   -.50579E-04
  14  Prefactor     7.6633        3.2073       -.23071E-06   -.39900E-03
  15  Prefactor     .10000E-03    20.126        .27015E-06** at limit **
  16  Prefactor     .10000E-03    10.297        .65389E-07** at limit **
  17  norm          1.7427        2.1465        .11116E-06   -.11352E-03
  18  Prefactor     .10000E-03    4.6268        .32688E-07** at limit **
  19  Prefactor     1.2675        7.0033        .17202E-05    .41664E-04
  20  Prefactor     .10000E-03    43.490        .17717E-06** at limit **
  21  norm          .99641        .89489       -.36849E-07   -.61070E-03
  22  Prefactor     .10000E-03    19.276        .68127E-06** at limit **
  23  norm          20.457        11.362        .33668E-09   -.16101E-04
  24  Prefactor     11.985        21.724       -.76578E-06    .12182E-04
  25  Prefactor     18.433        38.279        .16522E-05   -.10100E-03
  26  norm          4.9816        1.3924        .72179E-08   -.39315E-03
  27  Prefactor     .10000E-03    32.674        .59660E-06** at limit **
  28  Prefactor     8.0153        6.8862        .36261E-06   -.27159E-03
  29  Normalizat    .85237        .16556       -.90060E-06   -.59889E-03
  30  Prefactor     .91489        .18956       -.71416E-06   -.50754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4608
  Prefactor  = 3.44172
  Prefactor  = 0.000101914
  Prefactor  = 3.88748
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.2415
  norm       = 5.68768
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.15831
  norm       = 15.4404
  Prefactor  = 7.66334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74269
  Prefactor  = 0.0001
  Prefactor  = 1.26755
  Prefactor  = 0.0001
  norm       = 0.996413
  Prefactor  = 0.000100001
  norm       = 20.4573
  Prefactor  = 11.9853
  Prefactor  = 18.433
  norm       = 4.98158
  Prefactor  = 0.0001
  Prefactor  = 8.01534
  Normalizat = 0.852369
  Prefactor  = 0.91489
 **********
 **   18 **HESSE 
 **********

 FCN=   6929.008     FROM HESSE     STATUS=OK           606 CALLS     4023 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.461        27.034        .11339E-03   -1.5002    
   2  Prefactor     3.4417        3.7634        .16277E-03   -1.5337    
   3  Prefactor     .10191E-03    6.6246        .45449E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8875        32.562        .20452E-03   -1.5314    
   5  Prefactor     .10000E-03    12.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.242        13.656        .86914E-04   -1.4786    
   8  norm          5.6877        .58781        .19382E-04   -1.5231    
   9  Prefactor     .10000E-03    1.1221        .85690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.305        .76761E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1583        19.006        .13957E-02   -1.5414    
  13  norm          15.440        12.471        .10194E-03   -1.4922    
  14  Prefactor     7.6633        3.1538        .84590E-04   -1.5154    
  15  Prefactor     .10000E-03    20.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7427        2.1185        .12603E-03   -1.5444    
  18  Prefactor     .10000E-03    4.6387        .17484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2675        6.7486        .38223E-03   -1.5483    
  20  Prefactor     .10000E-03    44.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .99641        .85360        .68761E-03   -1.5508    
  22  Prefactor     .10000E-03    19.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          20.457        11.356        .88565E-04   -1.4803    
  24  Prefactor     11.985        21.621        .11564E-03   -1.5015    
  25  Prefactor     18.433        38.066        .93097E-04   -1.4849    
  26  norm          4.9816        1.3927        .50135E-04   -1.5262    
  27  Prefactor     .10000E-03    32.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     8.0153        6.8695        .14165E-03   -1.5142    
  29  Normalizat    .85237        .19281        .26092E-03   -.98155    
  30  Prefactor     .91489        .22085        .30363E-03   -.95623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3845e-09
Minuit parameter uncertainties:
  1  27.0604
  2  3.76366
  3  0.00712156
  4  22.5183
  5  2.2353e-06
  6  0.000314455
  7  13.6583
  8  0.587811
  9  2.11255e-06
  10  0.000330824
  11  6.81143e-05
  12  12.8146
  13  12.4727
  14  3.15391
  15  6.88031e-05
  16  3.9143e-07
  17  2.11861
  18  3.3199e-06
  19  5.8503
  20  0.00021552
  21  0.853609
  22  0.000198438
  23  11.3577
  24  21.6354
  25  38.1157
  26  1.39267
  27  0.000114301
  28  6.87016
  29  0.192965
  30  0.221068
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  7.663e+00  3.154e+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:  9.149e-01  2.211e-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:  8.524e-01  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.01
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 4.49e-08
Energy Flux (Fixed Index): 3.72e-05 +/- 1.53e-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) = 6929.00736206
delta logL = 0.000715557027434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6929.00683815
delta logL = 0.00123946205895

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7804       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3537       1.0000          .0000       10.000    
     3 'Normalizat'    .85378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91374       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=   6929.007     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      235 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7803        3.9072        .85494E-04    .15213E-02
   2  Index         2.3538        .36048        .46373E-02    .23471E-03
   3  Normalizat    .85380        .18503        .26074E-03   -.63658E-04
   4  Prefactor     .91372        .22065        .30380E-03   -.88090E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.78026
  Index      = 2.35376
  Normalizat = 0.853798
  Prefactor  = 0.913724
 **********
 **   18 **HESSE 
 **********

 FCN=   6929.007     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7803        3.7934        .34197E-05   -1.5150    
   2  Index         2.3538        .34979        .18549E-03   -.55771    
   3  Normalizat    .85380        .18510        .10430E-04   -.98103    
   4  Prefactor     .91372        .22076        .12152E-04   -.95663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20691e-10
Minuit parameter uncertainties:
  1  3.79348
  2  0.350191
  3  0.185235
  4  0.220976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806852': 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) = 6929.00683811
delta logL = 0.00123949955378

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  7.780e+00  3.793e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.354e+00  3.502e-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:  9.137e-01  2.210e-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:  8.538e-01  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.93
Ra Dec: 171.964 36.314
Photon Index (Free Index): 2.35 +/- 0.35
Photon Flux (Free Index): 1.08e-07 +/- 4.79e-08
Energy Flux (Free Index): 3.77e-05 +/- 1.79e-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/806852/cmap_HighResolution_363744001_364003201_4FGL_J1127.8+3618_daily_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='3.77e-05', photon_flux_error='4.49e-08', dlogl='1.24e-03', energy_flux='3.72e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-03 22:01:59.820220', photon_index_error2='0.35', photon_index2='2.35', ts='16.01', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.79e-05', EG='0.85', time_epoch_completed='1630731719.82', return_code='0', job_id='806852', GAL2='0.91', EG2='0.85', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='4.79e-08', ts2='15.93', photon_index='2.37' WHERE bin_id='480' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:01:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 806852: <4FGL_J1127.8+3618_daily_bin480> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin480> 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) <bullet0175>, 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:02:00 2021
Results reported at Fri Sep  3 22:02:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin480 171.964 36.314 363744001 364003201 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 :                                   691.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             269.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            935 sec.

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

