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


Performing analysis on: 4FGL_J1127.4+5648_daily_bin761
RA = 171.865, Dec = 56.8032
tmin = 436579201, tmax = 436838401
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='799137', job_status='RUN', time_executed='2021-09-03 21:22:00.388179', time_epoch_executed='1630729320.39' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='761'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799137/ft1_4FGL_J1127.4+5648_daily_bin761.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799137/ft2_4FGL_J1127.4+5648_daily_bin761.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799137/ft1_4FGL_J1127.4+5648_daily_bin761.fits outfile=/scratch/kocevski/799137/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin761.fits ra=171.865 dec=56.8032 rad=12.0 tmin=436579201.0 tmax=436838401.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 5.82
user 5.31
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799137/ft1_filtered_4FGL_J1127.4+5648_daily_bin761.fits evtable="EVENTS" scfile=/scratch/kocevski/799137/ft2_4FGL_J1127.4+5648_daily_bin761.fits sctable="SC_DATA" expcube=/scratch/kocevski/799137/ltcube_436579201_436838401_4FGL_J1127.4+5648_daily_bin761.fits outfile=/scratch/kocevski/799137/expmap_436579201_436838401_4FGL_J1127.4+5648_daily_bin761.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/799137/ltcube_436579201_436838401_4FGL_J1127.4+5648_daily_bin761.fits
.....................!
real 193.70
user 188.70
sys 4.32

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/799137/ft1_filtered_4FGL_J1127.4+5648_daily_bin761.fits scfile=/scratch/kocevski/799137/ft2_4FGL_J1127.4+5648_daily_bin761.fits outfile=/scratch/kocevski/799137/cmap_436579201_436838401_4FGL_J1127.4+5648_daily_bin761.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799137/ft1_filtered_4FGL_J1127.4+5648_daily_bin761.fits scfile=/scratch/kocevski/799137/ft2_4FGL_J1127.4+5648_daily_bin761.fits outfile=/scratch/kocevski/799137/cmap_HighResolution_436579201_436838401_4FGL_J1127.4+5648_daily_bin761.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.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/799137/ft1_filtered_4FGL_J1127.4+5648_daily_bin761.fits', '/scratch/kocevski/799137/ft2_4FGL_J1127.4+5648_daily_bin761.fits', expMap='/scratch/kocevski/799137/expmap_436579201_436838401_4FGL_J1127.4+5648_daily_bin761.fits', expCube='/scratch/kocevski/799137/ltcube_436579201_436838401_4FGL_J1127.4+5648_daily_bin761.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/799137/Model_4FGL_J1127.4+5648_daily_bin761.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/799137/ft1_filtered_4FGL_J1127.4+5648_daily_bin761.fits
Spacecraft file(s): /scratch/kocevski/799137/ft2_4FGL_J1127.4+5648_daily_bin761.fits
Exposure map: /scratch/kocevski/799137/expmap_436579201_436838401_4FGL_J1127.4+5648_daily_bin761.fits
Exposure cube: /scratch/kocevski/799137/ltcube_436579201_436838401_4FGL_J1127.4+5648_daily_bin761.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/799137/Model_4FGL_J1127.4+5648_daily_bin761.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) = 5234.43564563

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14180E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .26732E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38731E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2589       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .52807E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    124.17       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17447E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.4562       1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.747       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19464E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14702E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .20471E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.550       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32569E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .13811E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6435       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.319       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.9605       1.0000         .10000E-03   10000.    
    23 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.012       1.0000         .10000E-03   10000.    
    25 'Prefactor '    36.570       1.0000         .10000E-03   10000.    
    26 'norm      '    1.3609       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .73268E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.9109       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0435       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93462       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.

 FCN=   5234.419     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     3402 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9151       -.38129E-08** at limit **
   2  norm          .10000E-03    9.1697        .57418E-07** at limit **
   3  Prefactor     .10000E-03    114.49       -.14432E-04** at limit **
   4  norm          2.2576        2.1219        .17462E-06    .62530E-03
   5  norm          .10000E-03    .70562        .71110E-07** at limit **
   6  Prefactor     .10000E-03    79.597       -.75247E-06** at limit **
   7  Prefactor     123.05        83.740       -.38025E-05    .16738E-04
   8  Prefactor     .10000E-03    47.561        .40839E-06** at limit **
   9  norm          3.4637        2.2187       -.21596E-07   -.10079E-04
  10  Prefactor     59.166        54.230        .64951E-06    .59203E-05
  11  Prefactor     .10000E-03    12.351        .16502E-06** at limit **
  12  Prefactor     .10000E-03    34.757       -.21800E-06** at limit **
  13  norm          .10000E-03    26.292        .42001E-07** at limit **
  14  Prefactor     .10000E-03    2.0968        .99907E-07** at limit **
  15  Prefactor     18.621        18.819        .77635E-08    .12357E-04
  16  Prefactor     .10000E-03    18.851        .42524E-06** at limit **
  17  norm          .10000E-03    19.827        .75939E-06** at limit **
  18  Prefactor     .10000E-03    2.7564       -.22010E-05** at limit **
  19  norm          1.6395        4.0166       -.44413E-06    .22842E-04
  20  Prefactor     17.386        20.282        .62325E-06    .18165E-03
  21  Prefactor     .10000E-03    2.9921       -.35516E-06** at limit **
  22  Prefactor     8.8660        16.512        .79388E-07    .13817E-04
  23  norm          .10000E-03    .72344       -.13967E-06** at limit **
  24  Prefactor     15.792        20.807        .17760E-06    .13778E-04
  25  Prefactor     38.789        68.381       -.27080E-05    .13501E-04
  26  norm          1.3564        12.228        .23254E-05   -.66896E-05
  27  Prefactor     .10000E-03    6.5725       -.38767E-06** at limit **
  28  norm          4.9086        2.6380       -.46512E-08    .76695E-04
  29  Normalizat    1.0430        .17180        .54452E-06    .20028E-03
  30  Prefactor     .93437        .21788        .35447E-06    .13507E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.2576
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 123.046
  Prefactor  = 0.0001
  norm       = 3.46367
  Prefactor  = 59.1656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6207
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.63946
  Prefactor  = 17.386
  Prefactor  = 0.0001
  Prefactor  = 8.86604
  norm       = 0.0001
  Prefactor  = 15.7918
  Prefactor  = 38.7893
  norm       = 1.35638
  Prefactor  = 0.0001
  norm       = 4.90864
  Normalizat = 1.043
  Prefactor  = 0.934367
 **********
 **   18 **HESSE 
 **********

 FCN=   5234.419     FROM HESSE     STATUS=OK           586 CALLS     3988 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.1914        .21397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    111.78        .38894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2576        1.9319        .89378E-04   -1.5407    
   5  norm          .10000E-03    1.0531        .11762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    79.604        .19126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     123.05        83.717        .18061E-03   -1.3485    
   8  Prefactor     .10000E-03    47.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.4637        2.2188        .83468E-04   -1.5336    
  10  Prefactor     59.166        54.290        .52792E-04   -1.4168    
  11  Prefactor     .10000E-03    12.378        .20253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    26.304        .20208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1036        .10227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.621        18.827        .92992E-04   -1.4845    
  16  Prefactor     .10000E-03    18.985        .21355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    20.379        .41069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8156        .23312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6395        3.9801        .21469E-03   -1.5452    
  20  Prefactor     17.386        20.323        .96241E-04   -1.4874    
  21  Prefactor     .10000E-03    2.9884        .12197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.8660        16.485        .13390E-03   -1.5112    
  23  norm          .10000E-03    .73487        .60090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     15.792        20.810        .10009E-03   -1.4913    
  25  Prefactor     38.789        68.367        .66272E-04   -1.4462    
  26  norm          1.3564        12.177        .18718E-02   -1.5475    
  27  Prefactor     .10000E-03    6.8429        .36158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.9086        2.6344        .83519E-04   -1.5265    
  29  Normalizat    1.0430        .20260        .21513E-03   -.91603    
  30  Prefactor     .93437        .25669        .29191E-03   -.94950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75681e-09
Minuit parameter uncertainties:
  1  3.21634e-06
  2  8.86616e-06
  3  0.000131483
  4  1.93193
  5  1.83381e-05
  6  1.54295e-06
  7  83.7979
  8  2.11476e-05
  9  2.21888
  10  54.3359
  11  1.85995e-05
  12  2.37475e-07
  13  6.46437e-06
  14  3.13108e-06
  15  18.8331
  16  3.19862e-05
  17  2.19436e-05
  18  1.42714e-05
  19  3.98077
  20  20.3308
  21  8.61138e-06
  22  16.4931
  23  7.25721e-07
  24  20.8191
  25  68.5056
  26  8.13001
  27  9.82751e-07
  28  2.63445
  29  0.20275
  30  0.257027
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  3.131e-06  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:  9.344e-01  2.570e-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.043e+00  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.865 56.803
Photon Flux Upper Limit: 5.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/799137/likelihoodResults_436579201_436838401_4FGL_J1127.4+5648_daily_bin761.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) = 5234.42116739
delta logL = -0.00224803045876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5234.41891931
delta logL = 4.50463630841e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7081       1.0000          .0000       10.000    
     3 'Normalizat'    1.0430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93438       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=   5234.419     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      253 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.319        .10267E-01** at limit **
   2  Index         2.2718        5.1025        .50000       -.15911E-05
   3  Normalizat    1.0430        .13563E-01    .21513E-03    .74144E-04
   4  Prefactor     .93437        .17590E-01    .29191E-03    .64768E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2718
  Normalizat = 1.043
  Prefactor  = 0.934367
 **********
 **   18 **HESSE 
 **********

 FCN=   5234.419     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      280 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    227.72        .10747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2718        7.6975        .50000       -.57715    
   3  Normalizat    1.0430        .47064E-01    .86050E-05   -.91603    
   4  Prefactor     .93437        .61037E-01    .11676E-04   -.94950    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.66518e-07
Minuit parameter uncertainties:
  1  6.27476e-08
  2  1074.64
  3  0.0470655
  4  0.0610416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799137': 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): 102
logL (Free Index) = 5234.41891716
delta logL = 2.19951471081e-06

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  6.275e-08  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.272e+00  1.075e+03  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.344e-01  6.104e-02  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.043e+00  4.707e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.865 56.803

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/799137/cmap_HighResolution_436579201_436838401_4FGL_J1127.4+5648_daily_bin761.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', job_status='DONE', photon_flux_upper_limit='5.24e-08', time_completed='2021-09-03 21:37:04.323018', job_id='799137', GAL2='0.93', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630730224.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='761' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:37:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 799137: <4FGL_J1127.4+5648_daily_bin761> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin761> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 21:21:22 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:21:27 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:21:27 2021
Terminated at Fri Sep  3 21:37:05 2021
Results reported at Fri Sep  3 21:37:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin761 171.865 56.8032 436579201 436838401 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 :                                   901.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            943 sec.

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

