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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin347
RA = 171.964, Dec = 36.314
tmin = 329270401, tmax = 329529601
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='805312', job_status='RUN', time_executed='2021-09-03 21:42:48.754188', time_epoch_executed='1630730568.75' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805312

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805312/ft1_4FGL_J1127.8+3618_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805312/ft2_4FGL_J1127.8+3618_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805312/ft1_4FGL_J1127.8+3618_daily_bin347.fits outfile=/scratch/kocevski/805312/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin347.fits ra=171.964 dec=36.314 rad=12.0 tmin=329270401.0 tmax=329529601.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.73
user 3.43
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805312/ft2_4FGL_J1127.8+3618_daily_bin347.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/805312/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin347.fits evtable="EVENTS" outfile="/scratch/kocevski/805312/ft1_filtered_4FGL_J1127.8+3618_daily_bin347.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.61
user 0.36
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805312/ft1_filtered_4FGL_J1127.8+3618_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/805312/ft2_4FGL_J1127.8+3618_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/805312/ltcube_329270401_329529601_4FGL_J1127.8+3618_daily_bin347.fits outfile=/scratch/kocevski/805312/expmap_329270401_329529601_4FGL_J1127.8+3618_daily_bin347.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/805312/ltcube_329270401_329529601_4FGL_J1127.8+3618_daily_bin347.fits
.....................!
real 194.36
user 188.76
sys 4.80

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/805312/ft1_filtered_4FGL_J1127.8+3618_daily_bin347.fits scfile=/scratch/kocevski/805312/ft2_4FGL_J1127.8+3618_daily_bin347.fits outfile=/scratch/kocevski/805312/cmap_329270401_329529601_4FGL_J1127.8+3618_daily_bin347.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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805312/ft1_filtered_4FGL_J1127.8+3618_daily_bin347.fits scfile=/scratch/kocevski/805312/ft2_4FGL_J1127.8+3618_daily_bin347.fits outfile=/scratch/kocevski/805312/cmap_HighResolution_329270401_329529601_4FGL_J1127.8+3618_daily_bin347.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.59
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .85629E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2897       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.674       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .50828       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57781       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.671       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7824       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.100       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11048E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1462       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.7214       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.071       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.4055       1.0000         .10000E-03   10000.    
    26 'norm      '    2.3512       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .75661       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3124       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=   5920.758     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3923 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.674       -.20790E-05** at limit **
   2  Prefactor     .10000E-03    2.8962        .16650E-05** at limit **
   3  Prefactor     5.2889        4.7752        .54495E-06   -.26644E-03
   4  Prefactor     29.649        30.139       -.14010E-04    .25667E-03
   5  Prefactor     .10000E-03    12.690       -.79777E-06** at limit **
   6  Prefactor     .10000E-03    60.086        .12427E-05** at limit **
   7  Prefactor     .10000E-03    24.028        .45473E-05** at limit **
   8  norm          .50828        .20877        .75076E-08    .22290E-03
   9  Prefactor     1.8992        3.2560       -.55475E-06   -.82950E-03
  10  Prefactor     .10000E-03    3.8888       -.16734E-08** at limit **
  11  Prefactor     .10000E-03    5.1433       -.95058E-09** at limit **
  12  norm          .10000E-03    12.242        .11014E-05** at limit **
  13  norm          .10000E-03    3.0240       -.23544E-08** at limit **
  14  Prefactor     .57803        1.6593       -.62377E-06   -.14487E-02
  15  Prefactor     14.672        23.430        .84866E-06    .40255E-04
  16  Prefactor     .10000E-03    7.9502       -.38317E-07** at limit **
  17  norm          1.7825        1.9973       -.36870E-07   -.52126E-04
  18  Prefactor     10.102        10.248       -.20604E-06    .83538E-05
  19  Prefactor     .10004E-03    3.0758       -.18286E-06** at limit **
  20  Prefactor     .10000E-03    31.047       -.67456E-05** at limit **
  21  norm          3.1462        1.3039       -.89262E-08    .26382E-03
  22  Prefactor     .10000E-03    15.426       -.10493E-05** at limit **
  23  norm          7.7216        7.3263        .98386E-06    .13669E-02
  24  Prefactor     12.076        27.034        .48889E-05   -.67274E-04
  25  Prefactor     8.4051        62.261       -.18713E-05    .15601E-05
  26  norm          2.3513        1.4876       -.16820E-06   -.37597E-03
  27  Prefactor     .10000E-03    41.868        .32651E-05** at limit **
  28  Prefactor     .10000E-03    2.6921       -.16528E-07** at limit **
  29  Normalizat    .75646        .17540        .48492E-06   -.15482E-03
  30  Prefactor     1.3126        .20351        .26653E-06   -.95573E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.28888
  Prefactor  = 29.6485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.508283
  Prefactor  = 1.8992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.578031
  Prefactor  = 14.672
  Prefactor  = 0.0001
  norm       = 1.7825
  Prefactor  = 10.1016
  Prefactor  = 0.000100035
  Prefactor  = 0.000100001
  norm       = 3.14625
  Prefactor  = 0.0001
  norm       = 7.72155
  Prefactor  = 12.0764
  Prefactor  = 8.40509
  norm       = 2.35134
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.756464
  Prefactor  = 1.31256
 **********
 **   18 **HESSE 
 **********

 FCN=   5920.758     FROM HESSE     STATUS=OK           590 CALLS     4513 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.223        .24746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2889        4.7506        .15217E-03   -1.5248    
   4  Prefactor     29.649        29.427        .73549E-04   -1.4618    
   5  Prefactor     .10000E-03    12.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    60.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .50828        .20956        .21860E-04   -1.5565    
   9  Prefactor     1.8992        3.2458        .17159E-03   -1.5432    
  10  Prefactor     .10000E-03    3.8970        .14818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1498        .17041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    12.563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0264        .13068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .57803        1.4825        .15130E-02   -1.5556    
  15  Prefactor     14.672        23.023        .10457E-03   -1.4942    
  16  Prefactor     .10000E-03    7.9687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7825        1.9600        .10749E-03   -1.5441    
  18  Prefactor     10.102        10.229        .12608E-03   -1.5072    
  19  Prefactor     .10004E-03    57.669        .24718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1462        1.3031        .50777E-04   -1.5353    
  22  Prefactor     .10000E-03    15.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.7216        7.5032        .72155E-03   -1.5152    
  24  Prefactor     12.076        26.626        .11530E-03   -1.5013    
  25  Prefactor     8.4051        62.443        .13827E-03   -1.5128    
  26  norm          2.3513        1.4796        .70604E-04   -1.5401    
  27  Prefactor     .10000E-03    42.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.7001        .12330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .75646        .20171        .26487E-03   -1.0170    
  30  Prefactor     1.3126        .23892        .25345E-03   -.82934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22844e-09
Minuit parameter uncertainties:
  1  0.000353005
  2  1.54439e-05
  3  4.75092
  4  29.4409
  5  2.62432e-05
  6  8.41871e-05
  7  0.000185023
  8  0.209556
  9  3.24615
  10  1.28762e-06
  11  7.60683e-07
  12  4.26823e-05
  13  1.03733e-07
  14  1.48263
  15  23.0365
  16  1.44662e-06
  17  1.96005
  18  10.2311
  19  0.00285715
  20  0.0003525
  21  1.30315
  22  3.13154e-05
  23  7.50415
  24  26.652
  25  45.8857
  26  1.47962
  27  0.000380971
  28  2.14413e-06
  29  0.201908
  30  0.239115
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  5.780e-01  1.483e+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:  1.313e+00  2.391e-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:  7.565e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 7.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805312/likelihoodResults_329270401_329529601_4FGL_J1127.8+3618_daily_bin347.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): 0
logL (Free Index) = 5920.1388644
delta logL = 0.619157305891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5920.10301795
delta logL = 0.655003754877

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91047       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3352       1.0000          .0000       10.000    
     3 'Normalizat'    .76604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3014       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=   5920.103     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      216 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91159        1.3763        .21233E-01   -.79898E-04
   2  Index         1.3353        .48093        .28775       -.54343E-04
   3  Normalizat    .76589        .16474        .43166E-01    .18355E-04
   4  Prefactor     1.3016        .20250        .57473E-01    .13903E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.911594
  Index      = 1.33533
  Normalizat = 0.76589
  Prefactor  = 1.30156
 **********
 **   18 **HESSE 
 **********

 FCN=   5920.103     FROM HESSE     STATUS=OK            35 CALLS      251 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91159        1.4197        .10806E-02   -1.5517    
   2  Index         1.3353        .70609        .10637E-01   -.82262    
   3  Normalizat    .76589        .19356        .26331E-03   -1.0135    
   4  Prefactor     1.3016        .23799        .25414E-03   -.83261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13257e-09
Minuit parameter uncertainties:
  1  1.41977
  2  0.711265
  3  0.193738
  4  0.238192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805312': 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) = 5920.10301723
delta logL = 0.655004474514

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  9.116e-01  1.420e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.335e+00  7.113e-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:  1.302e+00  2.382e-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:  7.659e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 171.964 36.314
Photon Index (Free Index): 1.34 +/- 0.71
Photon Flux (Free Index): 4.77e-09 +/- 7.43e-09
Energy Flux (Free Index): 2.61e-05 +/- 4.92e-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/805312/cmap_HighResolution_329270401_329529601_4FGL_J1127.8+3618_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', comment='SUCCESS', energy_flux2='2.61e-05', dlogl='6.55e-01', photon_flux2='4.77e-09', job_status='DONE', time_completed='2021-09-03 21:57:54.093146', photon_index_error2='0.71', photon_index2='1.34', ts='0.21', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='7.22e-08', energy_flux_error2='4.92e-05', EG='0.76', time_epoch_completed='1630731474.09', return_code='0', job_id='805312', GAL2='1.30', EG2='0.77', return_code2='0', photon_flux_error2='7.43e-09', ts2='1.52', photon_index='2.37' WHERE bin_id='347' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:57:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 805312: <4FGL_J1127.8+3618_daily_bin347> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin347> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 21:41:45 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:42:36 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:42:36 2021
Terminated at Fri Sep  3 21:57:55 2021
Results reported at Fri Sep  3 21:57:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin347 171.964 36.314 329270401 329529601 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 :                                   898.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            970 sec.

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

