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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin907
RA = 171.964, Dec = 36.314
tmin = 474422401, tmax = 474681601
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='809536', job_status='RUN', time_executed='2021-09-03 21:58:40.990249', time_epoch_executed='1630731520.99' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809536

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809536/ft1_4FGL_J1127.8+3618_daily_bin907.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809536/ft2_4FGL_J1127.8+3618_daily_bin907.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809536/ft1_4FGL_J1127.8+3618_daily_bin907.fits outfile=/scratch/kocevski/809536/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin907.fits ra=171.964 dec=36.314 rad=12.0 tmin=474422401.0 tmax=474681601.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.57
user 3.32
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809536/ft1_filtered_4FGL_J1127.8+3618_daily_bin907.fits" evtable="EVENTS" scfile=/scratch/kocevski/809536/ft2_4FGL_J1127.8+3618_daily_bin907.fits sctable="SC_DATA" outfile=/scratch/kocevski/809536/ltcube_474422401_474681601_4FGL_J1127.8+3618_daily_bin907.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/809536/ft2_4FGL_J1127.8+3618_daily_bin907.fits
.....................!
real 15.84
user 15.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809536/ft1_filtered_4FGL_J1127.8+3618_daily_bin907.fits evtable="EVENTS" scfile=/scratch/kocevski/809536/ft2_4FGL_J1127.8+3618_daily_bin907.fits sctable="SC_DATA" expcube=/scratch/kocevski/809536/ltcube_474422401_474681601_4FGL_J1127.8+3618_daily_bin907.fits outfile=/scratch/kocevski/809536/expmap_474422401_474681601_4FGL_J1127.8+3618_daily_bin907.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/809536/ltcube_474422401_474681601_4FGL_J1127.8+3618_daily_bin907.fits
.....................!
real 191.28
user 186.00
sys 4.87

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/809536/ft1_filtered_4FGL_J1127.8+3618_daily_bin907.fits scfile=/scratch/kocevski/809536/ft2_4FGL_J1127.8+3618_daily_bin907.fits outfile=/scratch/kocevski/809536/cmap_474422401_474681601_4FGL_J1127.8+3618_daily_bin907.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809536/ft1_filtered_4FGL_J1127.8+3618_daily_bin907.fits scfile=/scratch/kocevski/809536/ft2_4FGL_J1127.8+3618_daily_bin907.fits outfile=/scratch/kocevski/809536/cmap_HighResolution_474422401_474681601_4FGL_J1127.8+3618_daily_bin907.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5825       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .46856E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.939       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7263       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58466E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.746       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9486       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.2585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.200       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2738       1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.581       1.0000         .10000E-03   10000.    
    21 'norm      '    5.0879       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9746       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.945       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.5149       1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.164       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .66329       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .86528       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86492       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=   6539.830     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3897 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.375       -.49911E-05** at limit **
   2  Prefactor     2.5825        4.5335       -.45246E-06   -.25693E-04
   3  Prefactor     .10000E-03    2.6820       -.51076E-07** at limit **
   4  Prefactor     .10000E-03    8.8314       -.14539E-06** at limit **
   5  Prefactor     .10000E-03    13.065        .41859E-05** at limit **
   6  Prefactor     .10000E-03    116.41        .55006E-05** at limit **
   7  Prefactor     12.989        15.260       -.11057E-04   -.80568E-03
   8  norm          2.7263        .42156       -.19439E-07   -.74985E-03
   9  Prefactor     .10000E-03    1.5251        .24752E-05** at limit **
  10  Prefactor     .10000E-03    8.1484        .28551E-05** at limit **
  11  Prefactor     .10000E-03    4.5663       -.74144E-07** at limit **
  12  norm          .10000E-03    5.7812        .35524E-06** at limit **
  13  norm          13.753        11.145       -.32627E-06   -.34290E-03
  14  Prefactor     3.9489        2.6048       -.11060E-06   -.18529E-03
  15  Prefactor     .10000E-03    12.342        .56175E-07** at limit **
  16  Prefactor     .10000E-03    7.0943       -.18400E-05** at limit **
  17  norm          4.2584        2.2282       -.69861E-07   -.66160E-04
  18  Prefactor     10.202        10.258       -.68692E-06   -.57709E-04
  19  Prefactor     8.2748        5.7928       -.78220E-06   -.12102E-03
  20  Prefactor     33.580        30.909       -.18761E-06   -.37935E-05
  21  norm          5.0883        1.3892       -.60960E-07    .13275E-03
  22  Prefactor     .10000E-03    3.7154        .45400E-07** at limit **
  23  norm          3.9743        5.8049       -.11819E-06    .84460E-05
  24  Prefactor     19.957        25.700        .11378E-04   -.16818E-03
  25  Prefactor     .10000E-03    26.702       -.60553E-05** at limit **
  26  norm          7.5151        1.6497       -.64971E-07    .14365E-04
  27  Prefactor     11.120        26.791       -.21604E-04    .18043E-03
  28  Prefactor     .66642        .59206        .13371E-06   -.19973E-02
  29  Normalizat    .86509        .16943        .15072E-05   -.73584E-03
  30  Prefactor     .86511        .18859        .14072E-05   -.49470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.58247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.9889
  norm       = 2.72631
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.7533
  Prefactor  = 3.94892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.25842
  Prefactor  = 10.2017
  Prefactor  = 8.27478
  Prefactor  = 33.5802
  norm       = 5.08826
  Prefactor  = 0.0001
  norm       = 3.97431
  Prefactor  = 19.9569
  Prefactor  = 0.0001
  norm       = 7.51515
  Prefactor  = 11.1204
  Prefactor  = 0.66642
  Normalizat = 0.865094
  Prefactor  = 0.865115
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.830     FROM HESSE     STATUS=OK           584 CALLS     4481 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5825        4.5287        .21849E-03   -1.5387    
   3  Prefactor     .10000E-03    2.7279        .12928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.8336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    117.97        .21189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.989        14.949        .11136E-03   -1.4987    
   8  norm          2.7263        .42233        .19871E-04   -1.5378    
   9  Prefactor     .10000E-03    19.210        .17735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.5687        .16876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.7940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.753        11.138        .10803E-03   -1.4966    
  14  Prefactor     3.9489        2.5966        .98142E-04   -1.5311    
  15  Prefactor     .10000E-03    12.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.1083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.2584        2.2236        .83074E-04   -1.5295    
  18  Prefactor     10.202        10.251        .12546E-03   -1.5069    
  19  Prefactor     8.2748        5.7802        .13938E-03   -1.5133    
  20  Prefactor     33.580        30.970        .69150E-04   -1.4548    
  21  norm          5.0883        1.3924        .46097E-04   -1.5257    
  22  Prefactor     .10000E-03    3.7176        .15224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9743        5.7979        .20231E-03   -1.5309    
  24  Prefactor     19.957        25.624        .89685E-04   -1.4814    
  25  Prefactor     .10000E-03    26.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.5151        1.6497        .46731E-04   -1.5160    
  27  Prefactor     11.120        26.410        .11990E-03   -1.5041    
  28  Prefactor     .66642        6.3986        .19745E-02   -1.5545    
  29  Normalizat    .86509        .19748        .25398E-03   -.97698    
  30  Prefactor     .86511        .22054        .30075E-03   -.97371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.142e-08
Minuit parameter uncertainties:
  1  0.000105381
  2  4.52925
  3  5.63383e-06
  4  4.61732e-07
  5  9.60858e-05
  6  0.0007676
  7  14.9536
  8  0.422326
  9  0.000262653
  10  6.79138e-05
  11  1.24493e-06
  12  1.21301e-05
  13  11.1398
  14  2.59671
  15  4.22061e-06
  16  2.77683e-05
  17  2.22369
  18  10.2526
  19  5.78063
  20  30.9844
  21  1.39246
  22  3.70962e-06
  23  5.79868
  24  25.6377
  25  0.000194563
  26  1.64969
  27  26.4382
  28  4.13022
  29  0.197649
  30  0.220765
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  3.949e+00  2.597e+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:  8.651e-01  2.208e-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:  8.651e-01  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.62e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.26e-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) = 6538.70178122
delta logL = 1.12813418432

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6538.6776309
delta logL = 1.15228450478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1269       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5204       1.0000          .0000       10.000    
     3 'Normalizat'    .79944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91823       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=   6538.678     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      250 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1266        6.9660        .87849E-02    .58330E-03
   2  Index         3.5205        2.4376        .10184        .16567E-03
   3  Normalizat    .79943        .52521E-01    .43603E-01    .18145E-04
   4  Prefactor     .91826        .60066E-01    .66162E-01    .12868E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12663
  Index      = 3.5205
  Normalizat = 0.799427
  Prefactor  = 0.918262
 **********
 **   18 **HESSE 
 **********

 FCN=   6538.678     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1266        4.2482        .39379E-04   -1.5496    
   2  Index         3.5205        2.1719        .39895E-02   -.30040    
   3  Normalizat    .79943        .20318        .26225E-03   -1.0009    
   4  Prefactor     .91826        .23553        .29264E-03   -.95506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.75292e-08
Minuit parameter uncertainties:
  1  4.24929
  2  2.25473
  3  0.203369
  4  0.235791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809536': 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) = 6538.67763088
delta logL = 1.15228452661

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.127e+00  4.249e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  3.521e+00  2.255e+00  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.183e-01  2.358e-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.994e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.93
Ra Dec: 171.964 36.314
Photon Index (Free Index): 3.52 +/- 2.25
Photon Flux (Free Index): 1.13e-07 +/- 6.87e-08
Energy Flux (Free Index): 1.86e-05 +/- 9.75e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/809536/cmap_HighResolution_474422401_474681601_4FGL_J1127.8+3618_daily_bin907.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.62e-08', energy_flux2='1.86e-05', photon_flux_error='3.69e-08', dlogl='1.15e+00', energy_flux='1.91e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-03 22:12:43.772204', photon_index_error2='2.25', photon_index2='3.52', ts='4.46', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='9.75e-06', EG='0.87', time_epoch_completed='1630732363.77', return_code='0', job_id='809536', GAL2='0.92', EG2='0.80', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='6.87e-08', ts2='6.93', photon_index='2.37' WHERE bin_id='907' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:12:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 809536: <4FGL_J1127.8+3618_daily_bin907> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin907> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep  3 21:56:08 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:56:26 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:56:26 2021
Terminated at Fri Sep  3 22:12:44 2021
Results reported at Fri Sep  3 22:12:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin907 171.964 36.314 474422401 474681601 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 :                                   838.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            996 sec.

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

