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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin770
RA = 171.964, Dec = 36.314
tmin = 438912001, tmax = 439171201
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='808353', job_status='RUN', time_executed='2021-09-03 21:53:39.780572', time_epoch_executed='1630731219.78' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808353

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808353/ft1_4FGL_J1127.8+3618_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808353/ft2_4FGL_J1127.8+3618_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808353/ft1_4FGL_J1127.8+3618_daily_bin770.fits outfile=/scratch/kocevski/808353/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin770.fits ra=171.964 dec=36.314 rad=12.0 tmin=438912001.0 tmax=439171201.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 6.26
user 5.93
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808353/ft1_filtered_4FGL_J1127.8+3618_daily_bin770.fits" evtable="EVENTS" scfile=/scratch/kocevski/808353/ft2_4FGL_J1127.8+3618_daily_bin770.fits sctable="SC_DATA" outfile=/scratch/kocevski/808353/ltcube_438912001_439171201_4FGL_J1127.8+3618_daily_bin770.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/808353/ft2_4FGL_J1127.8+3618_daily_bin770.fits
.....................!
real 17.17
user 16.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808353/ft1_filtered_4FGL_J1127.8+3618_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/808353/ft2_4FGL_J1127.8+3618_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/808353/ltcube_438912001_439171201_4FGL_J1127.8+3618_daily_bin770.fits outfile=/scratch/kocevski/808353/expmap_438912001_439171201_4FGL_J1127.8+3618_daily_bin770.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/808353/ltcube_438912001_439171201_4FGL_J1127.8+3618_daily_bin770.fits
.....................!
real 193.91
user 187.90
sys 4.23

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/808353/ft1_filtered_4FGL_J1127.8+3618_daily_bin770.fits scfile=/scratch/kocevski/808353/ft2_4FGL_J1127.8+3618_daily_bin770.fits outfile=/scratch/kocevski/808353/cmap_438912001_439171201_4FGL_J1127.8+3618_daily_bin770.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.63
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808353/ft1_filtered_4FGL_J1127.8+3618_daily_bin770.fits scfile=/scratch/kocevski/808353/ft2_4FGL_J1127.8+3618_daily_bin770.fits outfile=/scratch/kocevski/808353/cmap_HighResolution_438912001_439171201_4FGL_J1127.8+3618_daily_bin770.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11274E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5411       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12083E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6420       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.322       1.0000         .10000E-03   10000.    
    12 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1577       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.160       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8371       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1660       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4653       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.0403       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.488       1.0000         .10000E-03   10000.    
    23 'norm      '    7.6630       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    55.859       1.0000         .10000E-03   10000.    
    26 'norm      '    2.9152       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.7367       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92503       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .98542       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=   5579.336     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     3955 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    94.919        .25057E-05** at limit **
   2  Prefactor     6.5437        9.7342       -.87225E-06   -.34911E-03
   3  Prefactor     .10016E-03    5.7257        .19791E-05** at limit **
   4  Prefactor     .10000E-03    38.733        .59743E-05** at limit **
   5  Prefactor     .10000E-03    8.6157       -.44819E-09** at limit **
   6  Prefactor     .10001E-03    29.468       -.11016E-04** at limit **
   7  Prefactor     .10000E-03    6.7777        .27833E-08** at limit **
   8  norm          2.6420        .52845       -.29028E-08   -.42111E-03
   9  Prefactor     .10000E-03    2.4063       -.15252E-08** at limit **
  10  Prefactor     .10000E-03    6.2576        .32237E-09** at limit **
  11  Prefactor     17.321        13.918        .90624E-08   -.70118E-05
  12  norm          .10000E-03    14.742        .30217E-06** at limit **
  13  norm          .10000E-03    3.3793       -.87555E-08** at limit **
  14  Prefactor     7.1575        4.0421       -.84578E-07   -.34108E-03
  15  Prefactor     11.176        58.743        .17829E-05    .14334E-04
  16  Prefactor     .10000E-03    9.8342       -.25144E-06** at limit **
  17  norm          4.8363        3.0454       -.13143E-07    .18507E-04
  18  Prefactor     3.1640        7.5820        .23709E-05   -.86075E-03
  19  Prefactor     1.4659        5.6001       -.23204E-07   -.24708E-03
  20  Prefactor     .10000E-03    481.46       -.41670E-05** at limit **
  21  norm          8.0392        2.0091       -.40204E-07    .35819E-03
  22  Prefactor     24.495        26.779       -.16424E-05   -.88395E-04
  23  norm          7.6637        10.306       -.37227E-06   -.36412E-04
  24  Prefactor     .10000E-03    54.841       -.43020E-05** at limit **
  25  Prefactor     55.879        56.723        .31512E-05    .10493E-03
  26  norm          2.9153        1.3612        .31797E-07    .70212E-04
  27  Prefactor     .10000E-03    15.569       -.37798E-06** at limit **
  28  Prefactor     1.7393        10.512       -.13255E-05   -.17915E-03
  29  Normalizat    .92497        .20974        .27084E-06   -.13911E-03
  30  Prefactor     .98539        .22635       -.26798E-06   -.57320E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.54371
  Prefactor  = 0.000100159
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 2.64197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.321
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 7.15753
  Prefactor  = 11.1761
  Prefactor  = 0.0001
  norm       = 4.83634
  Prefactor  = 3.16398
  Prefactor  = 1.46587
  Prefactor  = 0.000100002
  norm       = 8.03917
  Prefactor  = 24.4954
  norm       = 7.66371
  Prefactor  = 0.000100001
  Prefactor  = 55.8792
  norm       = 2.91526
  Prefactor  = 0.0001
  Prefactor  = 1.73931
  Normalizat = 0.924966
  Prefactor  = 0.985394
 **********
 **   18 **HESSE 
 **********

 FCN=   5579.336     FROM HESSE     STATUS=OK           590 CALLS     4545 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5437        9.7553        .15691E-03   -1.5196    
   3  Prefactor     .10016E-03    28.300        .32490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.6165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    30.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.7877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6420        .52977        .23388E-04   -1.5383    
   9  Prefactor     .10000E-03    7.7306        .22411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.321        13.934        .96233E-04   -1.4875    
  12  norm          .10000E-03    14.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.3809        .13410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1575        4.0726        .44893E-03   -1.5173    
  15  Prefactor     11.176        59.872        .11992E-03   -1.5039    
  16  Prefactor     .10000E-03    9.8662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8363        3.0400        .96177E-04   -1.5268    
  18  Prefactor     3.1640        12.289        .11389E-02   -1.5352    
  19  Prefactor     1.4659        5.5862        .32154E-03   -1.5466    
  20  Prefactor     .10000E-03    494.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.0392        2.0093        .47651E-04   -1.5141    
  22  Prefactor     24.495        26.784        .80948E-04   -1.4718    
  23  norm          7.6637        10.312        .14486E-03   -1.5154    
  24  Prefactor     .10000E-03    55.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     55.879        56.866        .53672E-04   -1.4212    
  26  norm          2.9153        1.3596        .56382E-04   -1.5366    
  27  Prefactor     .10000E-03    15.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.7393        10.830        .31843E-03   -1.5444    
  29  Normalizat    .92497        .24664        .27672E-03   -.95588    
  30  Prefactor     .98539        .26711        .30948E-03   -.93218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84727e-09
Minuit parameter uncertainties:
  1  0.000140555
  2  9.75766
  3  0.00423904
  4  0.000673184
  5  1.28929e-06
  6  0.00107945
  7  1.44776e-06
  8  0.529773
  9  2.09948e-05
  10  1.67752e-06
  11  13.9365
  12  1.5181e-05
  13  1.79538e-07
  14  4.07277
  15  51.8159
  16  1.49732e-05
  17  3.04008
  18  12.2983
  19  5.5882
  20  0.00208919
  21  2.00933
  22  26.7969
  23  10.3143
  24  0.000504522
  25  56.9215
  26  1.35963
  27  1.9027e-05
  28  8.6825
  29  0.246939
  30  0.267473
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  7.158e+00  4.073e+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.854e-01  2.675e-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.250e-01  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.16
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.79e-08
Energy Flux (Fixed Index): 3.47e-05 +/- 1.97e-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) = 5577.29388611
delta logL = 2.04226488513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5577.2037739
delta logL = 2.13237709378

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9919       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6107       1.0000          .0000       10.000    
     3 'Normalizat'    .96719       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95494       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=   5577.204     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9908        4.0781        .33415E-02   -.29882E-04
   2  Index         1.6105        .27761        .13086       -.64951E-04
   3  Normalizat    .96712        .19494        .45755E-01   -.28795E-04
   4  Prefactor     .95504        .22483        .70905E-01   -.15658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.99082
  Index      = 1.61048
  Normalizat = 0.967124
  Prefactor  = 0.955039
 **********
 **   18 **HESSE 
 **********

 FCN=   5577.204     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9908        4.3558        .98873E-04   -1.5108    
   2  Index         1.6105        .31247        .54921E-02   -.74491    
   3  Normalizat    .96712        .22953        .27141E-03   -.94140    
   4  Prefactor     .95504        .26451        .31369E-03   -.94244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75666e-12
Minuit parameter uncertainties:
  1  4.35593
  2  0.312845
  3  0.229768
  4  0.264868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808353': 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) = 5577.20377356
delta logL = 2.1323774326

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  8.991e+00  4.356e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.610e+00  3.128e-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.550e-01  2.649e-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.671e-01  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.58
Ra Dec: 171.964 36.314
Photon Index (Free Index): 1.61 +/- 0.31
Photon Flux (Free Index): 5.21e-08 +/- 3.11e-08
Energy Flux (Free Index): 1.14e-04 +/- 9.02e-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/808353/cmap_HighResolution_438912001_439171201_4FGL_J1127.8+3618_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='1.14e-04', photon_flux_error='5.79e-08', dlogl='2.13e+00', energy_flux='3.47e-05', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-09-03 22:06:39.729525', photon_index_error2='0.31', photon_index2='1.61', ts='11.16', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='9.02e-05', EG='0.92', time_epoch_completed='1630731999.73', return_code='0', job_id='808353', GAL2='0.96', EG2='0.97', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='3.11e-08', ts2='15.58', photon_index='2.37' WHERE bin_id='770' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:06:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 808353: <4FGL_J1127.8+3618_daily_bin770> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin770> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 21:51:34 2021
Job was executed on host(s) <bullet0011>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:53:28 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:53:28 2021
Terminated at Fri Sep  3 22:06:40 2021
Results reported at Fri Sep  3 22:06:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin770 171.964 36.314 438912001 439171201 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 :                                   770.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            906 sec.

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

