/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 113 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 = 7394
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1127.8+3618_daily_bin447
RA = 171.964, Dec = 36.314
tmin = 355190401, tmax = 355449601
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='806806', job_status='RUN', time_executed='2021-09-03 21:48:26.203766', time_epoch_executed='1630730906.2' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806806

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806806/ft1_4FGL_J1127.8+3618_daily_bin447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806806/ft2_4FGL_J1127.8+3618_daily_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806806/ft1_4FGL_J1127.8+3618_daily_bin447.fits outfile=/scratch/kocevski/806806/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin447.fits ra=171.964 dec=36.314 rad=12.0 tmin=355190401.0 tmax=355449601.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.37
user 3.13
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806806/ft1_filtered_4FGL_J1127.8+3618_daily_bin447.fits" evtable="EVENTS" scfile=/scratch/kocevski/806806/ft2_4FGL_J1127.8+3618_daily_bin447.fits sctable="SC_DATA" outfile=/scratch/kocevski/806806/ltcube_355190401_355449601_4FGL_J1127.8+3618_daily_bin447.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/806806/ft2_4FGL_J1127.8+3618_daily_bin447.fits
.....................!
real 16.08
user 15.56
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806806/ft1_filtered_4FGL_J1127.8+3618_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/806806/ft2_4FGL_J1127.8+3618_daily_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/806806/ltcube_355190401_355449601_4FGL_J1127.8+3618_daily_bin447.fits outfile=/scratch/kocevski/806806/expmap_355190401_355449601_4FGL_J1127.8+3618_daily_bin447.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/806806/ltcube_355190401_355449601_4FGL_J1127.8+3618_daily_bin447.fits
.....................!
real 190.91
user 186.14
sys 4.30

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/806806/ft1_filtered_4FGL_J1127.8+3618_daily_bin447.fits scfile=/scratch/kocevski/806806/ft2_4FGL_J1127.8+3618_daily_bin447.fits outfile=/scratch/kocevski/806806/cmap_355190401_355449601_4FGL_J1127.8+3618_daily_bin447.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806806/ft1_filtered_4FGL_J1127.8+3618_daily_bin447.fits scfile=/scratch/kocevski/806806/ft2_4FGL_J1127.8+3618_daily_bin447.fits outfile=/scratch/kocevski/806806/cmap_HighResolution_355190401_355449601_4FGL_J1127.8+3618_daily_bin447.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.165       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3201       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6417       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1873       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .40366       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.802       1.0000         .10000E-03   10000.    
    13 'norm      '    .62339E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6000       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.157       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7955       1.0000         .10000E-03   10000.    
    17 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.304       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.1119       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    15.513       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.9866       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.1505       1.0000         .10000E-03   10000.    
    27 'Prefactor '    54.354       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.8090       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99246       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .59384       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=   5719.182     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3912 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.210        23.237        .41575E-05    .16007E-03
   2  Prefactor     9.3208        4.8829        .80127E-07    .13912E-03
   3  Prefactor     .10021E-03    2.8629        .62628E-06** at limit **
   4  Prefactor     .10000E-03    10.803       -.12562E-06** at limit **
   5  Prefactor     .10000E-03    10.646        .13846E-06** at limit **
   6  Prefactor     .10000E-03    29.371       -.89573E-06** at limit **
   7  Prefactor     .10000E-03    14.936       -.17460E-06** at limit **
   8  norm          1.6429        .35119       -.28676E-08    .13535E-02
   9  Prefactor     3.1870        2.6667       -.55992E-07   -.54706E-04
  10  Prefactor     .17787        10.260       -.11990E-05    .21208E-03
  11  Prefactor     .10000E-03    6.7349        .16828E-07** at limit **
  12  norm          14.834        11.498       -.76495E-07    .10624E-03
  13  norm          .10001E-03    7.6918        .10616E-05** at limit **
  14  Prefactor     4.5999        2.7991        .29975E-07    .19297E-03
  15  Prefactor     16.149        35.728       -.25521E-06   -.26920E-05
  16  Prefactor     4.7927        11.098        .25649E-06    .20776E-04
  17  norm          .10000E-03    1.0431       -.62662E-07** at limit **
  18  Prefactor     17.299        11.854       -.11441E-06   -.19612E-04
  19  Prefactor     .10000E-03    2.9366       -.30741E-07** at limit **
  20  Prefactor     .10000E-03    22.530        .11698E-06** at limit **
  21  norm          4.1111        1.2614        .19104E-07    .30335E-03
  22  Prefactor     .10000E-03    8.7601        .25049E-07** at limit **
  23  norm          15.511        10.371        .33998E-07    .23254E-04
  24  Prefactor     4.9748        31.963       -.10495E-06   -.83049E-05
  25  Prefactor     .10000E-03    38.422        .73783E-06** at limit **
  26  norm          6.1503        1.5381       -.12608E-07   -.47640E-04
  27  Prefactor     54.339        35.689       -.61540E-06   -.10202E-03
  28  Prefactor     1.8101        7.9452        .18549E-05    .14485E-03
  29  Normalizat    .99263        .17200        .11153E-05    .12215E-03
  30  Prefactor     .59380        .18888       -.11997E-05    .95366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.2096
  Prefactor  = 9.3208
  Prefactor  = 0.000100213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.64286
  Prefactor  = 3.18697
  Prefactor  = 0.177874
  Prefactor  = 0.0001
  norm       = 14.8338
  norm       = 0.000100014
  Prefactor  = 4.5999
  Prefactor  = 16.1488
  Prefactor  = 4.79267
  norm       = 0.0001
  Prefactor  = 17.2992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.11109
  Prefactor  = 0.0001
  norm       = 15.5108
  Prefactor  = 4.97479
  Prefactor  = 0.000100001
  norm       = 6.15032
  Prefactor  = 54.3395
  Prefactor  = 1.81012
  Normalizat = 0.992629
  Prefactor  = 0.593796
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.182     FROM HESSE     STATUS=OK           600 CALLS     4512 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.210        23.426        .99617E-04   -1.4903    
   2  Prefactor     9.3208        4.8914        .11723E-03   -1.5097    
   3  Prefactor     .10021E-03    20.908        .23396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6429        .35866        .19376E-04   -1.5452    
   9  Prefactor     3.1870        2.6607        .10748E-03   -1.5351    
  10  Prefactor     .17787        22.708        .65588E-01   -1.5624    
  11  Prefactor     .10000E-03    6.7485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.834        11.676        .10411E-03   -1.4937    
  13  norm          .10001E-03    27.848        .39292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5999        2.8175        .83307E-04   -1.5279    
  15  Prefactor     16.149        35.933        .99642E-04   -1.4904    
  16  Prefactor     4.7927        11.058        .18372E-03   -1.5270    
  17  norm          .10000E-03    1.0642        .15039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.299        11.837        .96282E-04   -1.4876    
  19  Prefactor     .10000E-03    2.9650        .12639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.1111        1.2622        .44652E-04   -1.5302    
  22  Prefactor     .10000E-03    8.7878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          15.511        10.374        .10169E-03   -1.4920    
  24  Prefactor     4.9748        31.778        .18009E-03   -1.5262    
  25  Prefactor     .10000E-03    38.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.1503        1.5383        .45200E-04   -1.5212    
  27  Prefactor     54.339        35.462        .54406E-04   -1.4232    
  28  Prefactor     1.8101        7.7593        .31066E-03   -1.5439    
  29  Normalizat    .99263        .20027        .21886E-03   -.93278    
  30  Prefactor     .59380        .21870        .32306E-03   -1.0785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26273e-08
Minuit parameter uncertainties:
  1  23.4395
  2  4.89164
  3  0.00422498
  4  3.42512e-05
  5  3.12603e-05
  6  0.000495117
  7  5.661e-05
  8  0.358662
  9  2.66075
  10  4.01994
  11  4.71049e-06
  12  11.6782
  13  0.00125387
  14  2.81754
  15  35.9815
  16  11.0623
  17  1.76339e-06
  18  11.8383
  19  2.69828e-06
  20  3.35256e-05
  21  1.26221
  22  2.84168e-06
  23  10.3753
  24  25.1662
  25  0.000423254
  26  1.53833
  27  35.4757
  28  7.49682
  29  0.200426
  30  0.219011
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  4.600e+00  2.818e+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:  5.938e-01  2.190e-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:  9.926e-01  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 6.55e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.37e-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) = 5719.17916398
delta logL = 0.00241414988432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5719.17784662
delta logL = 0.00373151198437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7451       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3307       1.0000          .0000       10.000    
     3 'Normalizat'    .99475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59224       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=   5719.178     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7460        52.984        .46178E-02    .13829E-03
   2  Index         2.3305        3.5200        .15143        .74831E-04
   3  Normalizat    .99487        .89979E-01    .46101E-01   -.95521E-05
   4  Prefactor     .59212        .81446E-01    .73068E-01    .56051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.74604
  Index      = 2.33051
  Normalizat = 0.994873
  Prefactor  = 0.592115
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.178     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7460        3.1071        .85052E-04   -1.5272    
   2  Index         2.3305        .47976        .57081E-02   -.56320    
   3  Normalizat    .99487        .18794        .21866E-03   -.93202    
   4  Prefactor     .59212        .21746        .32348E-03   -1.0792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85634e-11
Minuit parameter uncertainties:
  1  3.10718
  2  0.4808
  3  0.18807
  4  0.217768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806806': 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) = 5719.17784637
delta logL = 0.00373176746325

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  4.746e+00  3.107e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.331e+00  4.808e-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:  5.921e-01  2.178e-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:  9.949e-01  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.89
Ra Dec: 171.964 36.314
Photon Index (Free Index): 2.33 +/- 0.48
Photon Flux (Free Index): 6.36e-08 +/- 4.02e-08
Energy Flux (Free Index): 2.30e-05 +/- 1.52e-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/806806/cmap_HighResolution_355190401_355449601_4FGL_J1127.8+3618_daily_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.55e-08', energy_flux2='2.30e-05', photon_flux_error='4.01e-08', dlogl='3.73e-03', energy_flux='2.23e-05', photon_flux2='6.36e-08', job_status='DONE', time_completed='2021-09-03 22:01:23.673676', photon_index_error2='0.48', photon_index2='2.33', ts='6.88', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='0.99', time_epoch_completed='1630731683.67', return_code='0', job_id='806806', GAL2='0.59', EG2='0.99', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='4.02e-08', ts2='6.89', photon_index='2.37' WHERE bin_id='447' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:01:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 806806: <4FGL_J1127.8+3618_daily_bin447> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin447> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep  3 21:46:22 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:46:24 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:24 2021
Terminated at Fri Sep  3 22:01:24 2021
Results reported at Fri Sep  3 22:01:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin447 171.964 36.314 355190401 355449601 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 :                                   776.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             303.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            902 sec.

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

