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


Performing analysis on: 4FGL_J1127.4+5648_daily_bin1283
RA = 171.865, Dec = 56.8032
tmin = 571881601, tmax = 572140801
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='802005', job_status='RUN', time_executed='2021-09-03 21:35:48.643016', time_epoch_executed='1630730148.64' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802005/ft1_4FGL_J1127.4+5648_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802005/ft2_4FGL_J1127.4+5648_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802005/ft1_4FGL_J1127.4+5648_daily_bin1283.fits outfile=/scratch/kocevski/802005/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin1283.fits ra=171.865 dec=56.8032 rad=12.0 tmin=571881601.0 tmax=572140801.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.58
user 2.36
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/802005/ft2_4FGL_J1127.4+5648_daily_bin1283.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/802005/ft2_4FGL_J1127.4+5648_daily_bin1283.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/802005/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin1283.fits evtable="EVENTS" outfile="/scratch/kocevski/802005/ft1_filtered_4FGL_J1127.4+5648_daily_bin1283.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802005/ft1_filtered_4FGL_J1127.4+5648_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/802005/ft2_4FGL_J1127.4+5648_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/802005/ltcube_571881601_572140801_4FGL_J1127.4+5648_daily_bin1283.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/802005/ft2_4FGL_J1127.4+5648_daily_bin1283.fits
.....................!
real 16.65
user 16.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802005/ft1_filtered_4FGL_J1127.4+5648_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/802005/ft2_4FGL_J1127.4+5648_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/802005/ltcube_571881601_572140801_4FGL_J1127.4+5648_daily_bin1283.fits outfile=/scratch/kocevski/802005/expmap_571881601_572140801_4FGL_J1127.4+5648_daily_bin1283.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/802005/ltcube_571881601_572140801_4FGL_J1127.4+5648_daily_bin1283.fits
.....................!
real 191.95
user 187.51
sys 3.84

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

Setting source of interest to:
4FGL J1127.4+5648 @ 171.865 56.8032

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/802005/ft1_filtered_4FGL_J1127.4+5648_daily_bin1283.fits scfile=/scratch/kocevski/802005/ft2_4FGL_J1127.4+5648_daily_bin1283.fits outfile=/scratch/kocevski/802005/cmap_571881601_572140801_4FGL_J1127.4+5648_daily_bin1283.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.865 yref=56.8032 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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/802005/ft1_filtered_4FGL_J1127.4+5648_daily_bin1283.fits scfile=/scratch/kocevski/802005/ft2_4FGL_J1127.4+5648_daily_bin1283.fits outfile=/scratch/kocevski/802005/cmap_HighResolution_571881601_572140801_4FGL_J1127.4+5648_daily_bin1283.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.865 yref=56.8032 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/802005/ft1_filtered_4FGL_J1127.4+5648_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/802005/ft2_4FGL_J1127.4+5648_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/802005/Model_4FGL_J1127.4+5648_daily_bin1283.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/802005/ft1_filtered_4FGL_J1127.4+5648_daily_bin1283.fits.....................!
real 35.70
user 34.33
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/802005/ft1_filtered_4FGL_J1127.4+5648_daily_bin1283.fits', '/scratch/kocevski/802005/ft2_4FGL_J1127.4+5648_daily_bin1283.fits', expMap='/scratch/kocevski/802005/expmap_571881601_572140801_4FGL_J1127.4+5648_daily_bin1283.fits', expCube='/scratch/kocevski/802005/ltcube_571881601_572140801_4FGL_J1127.4+5648_daily_bin1283.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/802005/Model_4FGL_J1127.4+5648_daily_bin1283.xml', optimizer='MINUIT')

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

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.906e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/802005/ft1_filtered_4FGL_J1127.4+5648_daily_bin1283.fits
Spacecraft file(s): /scratch/kocevski/802005/ft2_4FGL_J1127.4+5648_daily_bin1283.fits
Exposure map: /scratch/kocevski/802005/expmap_571881601_572140801_4FGL_J1127.4+5648_daily_bin1283.fits
Exposure cube: /scratch/kocevski/802005/ltcube_571881601_572140801_4FGL_J1127.4+5648_daily_bin1283.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/802005/Model_4FGL_J1127.4+5648_daily_bin1283.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) = 2841.86393174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    92.219       1.0000         .10000E-03   10000.    
     2 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.710       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1948       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.347       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11257E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.4929       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10965E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .16828E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.309       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27633       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.773       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4003       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9473       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .22854       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.729       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11808E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    21.040       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    17.425       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5008       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73125       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2841.863     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     4238 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     92.227        1.2700        .22443E-06   -.70544E-03
   2  norm          .10000E-03    20.663       -.28937E-06** at limit **
   3  Prefactor     .10051E-03    21.016       -.24608E-04** at limit **
   4  norm          10.709        7.2738       -.27528E-05    .88744E-04
   5  norm          3.1951        5.7610        .14283E-05   -.21484E-04
   6  Prefactor     33.314        4.0935       -.25063E-05    .26204E-02
   7  Prefactor     .10810E-03    207.05        .15826E-03** at limit **
   8  Prefactor     .10521E-03    45.229       -.12064E-04** at limit **
   9  norm          3.4925        3.5321        .69351E-07   -.37228E-04
  10  Prefactor     .10401E-03    22.449        .11483E-04** at limit **
  11  Prefactor     .10001E-03    39.014        .14680E-04** at limit **
  12  Prefactor     .10455E-03    51.729       -.40898E-04** at limit **
  13  norm          .10191E-03    43.189       -.22123E-04** at limit **
  14  Prefactor     10.307        2.9419        .80476E-06    .10240E-02
  15  Prefactor     .10175E-03    1154.4        .10458E-03** at limit **
  16  Prefactor     .10067E-03    21.511       -.25577E-04** at limit **
  17  norm          .10000E-03    10.158        .10403E-05** at limit **
  18  Prefactor     .10000E-03    3.5842        .35894E-06** at limit **
  19  norm          11.773        9.5805       -.86795E-05   -.16203E-02
  20  Prefactor     4.4048        1.9302       -.39883E-05    .13896E-03
  21  Prefactor     7.9473        9.6266        .19587E-04    .15338E-02
  22  Prefactor     .10000E-03    15.272       -.59915E-06** at limit **
  23  norm          .22589        9.0879        .31934E-05   -.23182E-04
  24  Prefactor     23.735        1.1383        .27579E-06   -.13513E-03
  25  Prefactor     .10063E-03    62.918        .57516E-04** at limit **
  26  norm          21.032        1.1203        .46659E-06    .12595E-03
  27  Prefactor     .10000E-03    3.9633        .10096E-06** at limit **
  28  norm          17.426        4.9578        .41871E-06   -.72742E-04
  29  Normalizat    1.5011        .36317       -.99669E-05   -.67822E-04
  30  Prefactor     .73078        .41330       -.15080E-05   -.51019E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 92.2269
  norm       = 0.0001
  Prefactor  = 0.000100513
  norm       = 10.709
  norm       = 3.19509
  Prefactor  = 33.3144
  Prefactor  = 0.000108096
  Prefactor  = 0.000105206
  norm       = 3.49247
  Prefactor  = 0.000104007
  Prefactor  = 0.000100013
  Prefactor  = 0.000104553
  norm       = 0.000101911
  Prefactor  = 10.307
  Prefactor  = 0.000101752
  Prefactor  = 0.000100674
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7727
  Prefactor  = 4.40477
  Prefactor  = 7.94726
  Prefactor  = 0.0001
  norm       = 0.225888
  Prefactor  = 23.7353
  Prefactor  = 0.000100628
  norm       = 21.0321
  Prefactor  = 0.0001
  norm       = 17.426
  Normalizat = 1.50107
  Prefactor  = 0.730777
 **********
 **   18 **HESSE 
 **********

 FCN=   2841.863     FROM HESSE     STATUS=OK           658 CALLS     4896 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     92.227        177.24        .10462E-02   -1.3784    
   2  norm          .10000E-03    20.668        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10051E-03    51.137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.709        7.2968        .30607E-02   -1.5053    
   5  norm          3.1951        5.8759        .56674E-02   -1.5350    
   6  Prefactor     33.314        6182.6        .17348E-02   -1.4553    
   7  Prefactor     .10810E-03    247.51        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10521E-03    136.59        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.4925        3.5298        .54086E-02   -1.5334    
  10  Prefactor     .10401E-03    55.885        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    39.064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10455E-03    114.03        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10191E-03    131.22        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.307        17.192        .31198E-02   -1.5066    
  15  Prefactor     .10175E-03    77.740        .13252       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10067E-03    50.388        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.153        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5640        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.773        9.7954        .29188E-02   -1.5022    
  20  Prefactor     4.4048        93.949        .47997E-02   -1.5288    
  21  Prefactor     7.9473        9.7444        .35557E-02   -1.5144    
  22  Prefactor     .10000E-03    15.263        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .22589        2.6498        .44789E-01   -1.5613    
  24  Prefactor     23.735        25.938        .20558E-02   -1.4733    
  25  Prefactor     .10063E-03    74.424        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          21.032        15.503        .21830E-02   -1.4790    
  27  Prefactor     .10000E-03    3.9507        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          17.426        4.9705        .23987E-02   -1.4873    
  29  Normalizat    1.5011        .32025        .56025E-01   -.77748    
  30  Prefactor     .73078        .36318        .89462E-01   -1.0233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17607e-06
Minuit parameter uncertainties:
  1  178.272
  2  5.2394e-05
  3  0.0102495
  4  7.29745
  5  5.87698
  6  656.368
  7  0.0899037
  8  0.0534554
  9  3.53005
  10  0.0299563
  11  0.00141293
  12  0.04566
  13  0.0317408
  14  17.2005
  15  0.023371
  16  0.0116683
  17  1.32655e-05
  18  5.83613e-06
  19  9.79674
  20  40.7579
  21  9.7463
  22  2.15616e-05
  23  1.54707
  24  25.9501
  25  0.0136953
  26  15.5059
  27  3.25728e-06
  28  4.97065
  29  0.320687
  30  0.364371
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.031e+01  1.720e+01  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  7.308e-01  3.644e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.501e+00  3.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 171.865 56.803
Photon Flux Upper Limit: 2.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/802005/likelihoodResults_571881601_572140801_4FGL_J1127.4+5648_daily_bin1283.txt

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): 102
logL (Free Index) = 2840.74946075
delta logL = 1.11361873189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2840.46541
delta logL = 1.39766947451

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15005E-02   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.2910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92794       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+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=   2840.465     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      409 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15006E-02    .10192E-02    .13444E-05** at limit **
   2  Index        10.0000        6.6523        .22956E-01** at limit **
   3  Normalizat    1.2912        .38509        .26268E-03    .61690E-04
   4  Prefactor     .92774        .44193        .35706E-03    .48986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00150058
  Index      = 10
  Normalizat = 1.2912
  Prefactor  = 0.927744
 **********
 **   18 **HESSE 
 **********

 FCN=   2840.465     FROM HESSE     STATUS=OK            25 CALLS      434 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15006E-02    .10066E-02    .74866E-07   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.6521        .91824E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2912        .38551        .52536E-04   -.83829    
   4  Prefactor     .92774        .44240        .14282E-04   -.95178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16361e-10
Minuit parameter uncertainties:
  1  0.00100661
  2  7.51186e-05
  3  0.386372
  4  0.444134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802005': 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) = 2840.46540817
delta logL = 1.39767131084

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.501e-03  1.007e-03  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  1.000e+01  7.512e-05  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  9.277e-01  4.441e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.291e+00  3.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 171.865 56.803
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 2.66e-07 +/- 1.73e-07
Energy Flux (Free Index): 2.97e-05 +/- 1.94e-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/802005/cmap_HighResolution_571881601_572140801_4FGL_J1127.4+5648_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-02', comment='SUCCESS', energy_flux2='2.97e-05', dlogl='1.40e+00', photon_flux2='2.66e-07', job_status='DONE', time_completed='2021-09-03 21:47:06.013544', photon_index_error2='0.00', photon_index2='10.00', ts='0.50', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='2.64e-07', energy_flux_error2='1.94e-05', EG='1.50', time_epoch_completed='1630730826.01', return_code='0', job_id='802005', GAL2='0.93', EG2='1.29', return_code2='0', photon_flux_error2='1.73e-07', ts2='3.67', photon_index='2.72' WHERE bin_id='1283' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:47:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 802005: <4FGL_J1127.4+5648_daily_bin1283> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin1283> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 21:31:16 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:31:44 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:31:44 2021
Terminated at Fri Sep  3 21:47:06 2021
Results reported at Fri Sep  3 21:47:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin1283 171.865 56.8032 571881601 572140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.4+5648 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   672.10 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             270.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            950 sec.

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

