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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin979
RA = 171.964, Dec = 36.314
tmin = 493084801, tmax = 493344001
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='811025', job_status='RUN', time_executed='2021-09-03 22:03:22.469457', time_epoch_executed='1630731802.47' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811025

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811025/ft1_4FGL_J1127.8+3618_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811025/ft2_4FGL_J1127.8+3618_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811025/ft1_4FGL_J1127.8+3618_daily_bin979.fits outfile=/scratch/kocevski/811025/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin979.fits ra=171.964 dec=36.314 rad=12.0 tmin=493084801.0 tmax=493344001.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.60
user 3.38
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811025/ft1_filtered_4FGL_J1127.8+3618_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/811025/ft2_4FGL_J1127.8+3618_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/811025/ltcube_493084801_493344001_4FGL_J1127.8+3618_daily_bin979.fits outfile=/scratch/kocevski/811025/expmap_493084801_493344001_4FGL_J1127.8+3618_daily_bin979.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/811025/ltcube_493084801_493344001_4FGL_J1127.8+3618_daily_bin979.fits
.....................!
real 190.85
user 185.94
sys 4.49

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/811025/ft1_filtered_4FGL_J1127.8+3618_daily_bin979.fits scfile=/scratch/kocevski/811025/ft2_4FGL_J1127.8+3618_daily_bin979.fits outfile=/scratch/kocevski/811025/cmap_493084801_493344001_4FGL_J1127.8+3618_daily_bin979.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.70
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811025/ft1_filtered_4FGL_J1127.8+3618_daily_bin979.fits scfile=/scratch/kocevski/811025/ft2_4FGL_J1127.8+3618_daily_bin979.fits outfile=/scratch/kocevski/811025/cmap_HighResolution_493084801_493344001_4FGL_J1127.8+3618_daily_bin979.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.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.204       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.359       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.403       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .70225       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15040       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.0604       1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.673       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22783E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0080       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .84408E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .74323       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.0559       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7925       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.0862       1.0000         .10000E-03   10000.    
    26 'norm      '    2.9008       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.979       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.9753       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0032       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .91446       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=   4662.000     FROM MIGRAD    STATUS=CONVERGED    793 CALLS     3960 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.218        23.148        .57579E-06    .94303E-04
   2  Prefactor     .10000E-03    1.2922       -.73558E-07** at limit **
   3  Prefactor     .10000E-03    3.2444       -.36272E-06** at limit **
   4  Prefactor     12.361        20.432        .14356E-06    .19577E-04
   5  Prefactor     .10000E-03    33.516        .10462E-05** at limit **
   6  Prefactor     32.243        102.96       -.14654E-05   -.53844E-04
   7  Prefactor     .10000E-03    5.9602        .14605E-06** at limit **
   8  norm          .70230        .27637       -.12391E-08   -.11210E-03
   9  Prefactor     .17762        11.305       -.55928E-05    .56007E-03
  10  Prefactor     .10000E-03    8.0610        .25339E-06** at limit **
  11  Prefactor     .10000E-03    8.1779        .23557E-06** at limit **
  12  norm          6.0610        12.467       -.17648E-07   -.53556E-04
  13  norm          .10000E-03    5.7991        .27135E-06** at limit **
  14  Prefactor     .10000E-03    .52728        .62515E-07** at limit **
  15  Prefactor     16.675        17.333       -.74581E-07   -.25686E-04
  16  Prefactor     .10000E-03    12.440        .12791E-06** at limit **
  17  norm          1.0076        1.4440        .29716E-06    .10472E-02
  18  Prefactor     .10007E-03    8.7656        .13224E-05** at limit **
  19  Prefactor     .10000E-03    1.2453        .95358E-07** at limit **
  20  Prefactor     .10000E-03    12.330        .41701E-08** at limit **
  21  norm          .74345        .73608        .82357E-07    .22750E-03
  22  Prefactor     .10000E-03    8.3867        .29342E-06** at limit **
  23  norm          1.0578        11.964       -.74990E-06    .25947E-03
  24  Prefactor     1.7882        55.082        .75152E-06    .68954E-05
  25  Prefactor     8.0830        29.871        .77891E-07   -.14135E-04
  26  norm          2.9010        1.2694       -.16969E-07   -.30963E-03
  27  Prefactor     22.981        30.348        .70988E-07   -.43684E-04
  28  Prefactor     3.9752        4.6201        .41453E-07   -.14265E-05
  29  Normalizat    1.0028        .17604       -.36023E-05   -.85101E-03
  30  Prefactor     .91483        .22313        .29274E-05   -.68170E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.2182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3605
  Prefactor  = 0.0001
  Prefactor  = 32.2434
  Prefactor  = 0.0001
  norm       = 0.702303
  Prefactor  = 0.17762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.061
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.675
  Prefactor  = 0.000100002
  norm       = 1.0076
  Prefactor  = 0.000100068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.743445
  Prefactor  = 0.0001
  norm       = 1.05776
  Prefactor  = 1.78823
  Prefactor  = 8.08303
  norm       = 2.90104
  Prefactor  = 22.9812
  Prefactor  = 3.97521
  Normalizat = 1.00285
  Prefactor  = 0.914827
 **********
 **   18 **HESSE 
 **********

 FCN=   4662.000     FROM HESSE     STATUS=OK           600 CALLS     4560 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.218        23.192        .89108E-04   -1.4808    
   2  Prefactor     .10000E-03    1.2913        .75751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2434        .11926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.361        20.436        .11394E-03   -1.5005    
   5  Prefactor     .10000E-03    33.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.243        103.39        .70392E-04   -1.4572    
   7  Prefactor     .10000E-03    5.9784        .16275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .70230        .27626        .21737E-04   -1.5540    
   9  Prefactor     .17762        14.703        .16857E-02   -1.5624    
  10  Prefactor     .10000E-03    8.1000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.1990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.0610        12.457        .16309E-03   -1.5216    
  13  norm          .10000E-03    5.8381        .16067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .52940        .48423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.675        17.326        .98087E-04   -1.4891    
  16  Prefactor     .10000E-03    60.840        .43513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0076        1.3036        .96759E-03   -1.5507    
  18  Prefactor     .10007E-03    14.382        .59620E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2489        .74425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .74345        .70117        .55924E-03   -1.5536    
  22  Prefactor     .10000E-03    8.4236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.0578        12.361        .22703E-02   -1.5502    
  24  Prefactor     1.7882        54.944        .31238E-03   -1.5441    
  25  Prefactor     8.0830        29.865        .14099E-03   -1.5139    
  26  norm          2.9010        1.2669        .49144E-04   -1.5367    
  27  Prefactor     22.981        30.235        .83560E-04   -1.4749    
  28  Prefactor     3.9752        4.6197        .15400E-03   -1.5309    
  29  Normalizat    1.0028        .21457        .21421E-03   -.92935    
  30  Prefactor     .91483        .24686        .27020E-03   -.95625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99213e-09
Minuit parameter uncertainties:
  1  23.2026
  2  5.16735e-06
  3  3.00514e-05
  4  20.4471
  5  0.000223511
  6  103.969
  7  1.97129e-05
  8  0.276258
  9  3.232
  10  4.66974e-05
  11  3.86903e-05
  12  12.4622
  13  1.8815e-05
  14  1.81772e-06
  15  17.3308
  16  0.000737179
  17  1.30359
  18  0.00198409
  19  3.06578e-06
  20  5.77978e-06
  21  0.701176
  22  2.54912e-05
  23  7.23329
  24  19.8439
  25  29.9202
  26  1.26691
  27  30.2553
  28  4.62012
  29  0.21476
  30  0.247164
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.818e-06  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  9.148e-01  2.472e-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:  1.003e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/811025/likelihoodResults_493084801_493344001_4FGL_J1127.8+3618_daily_bin979.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) = 4661.99959135
delta logL = -3.5126138755e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4661.9995531
delta logL = 3.13155851472e-06

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 'Index     '    2.3309       1.0000          .0000       10.000    
     3 'Normalizat'    1.0029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91481       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=   4662.000     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      211 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9006        .90712E-02** at limit **
   2  Index         1.7620        8.9268        .50000        .85590E-06
   3  Normalizat    1.0029        .10137E-01    .46203E-01   -.16931E-03
   4  Prefactor     .91481        .12335E-01    .45194E-01   -.21619E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76202
  Normalizat = 1.00286
  Prefactor  = 0.914813
 **********
 **   18 **HESSE 
 **********

 FCN=   4662.000     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      240 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.831        .56054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7620        6.7883        .50000       -.70443    
   3  Normalizat    1.0029        .45437E-01    .21420E-03   -.92935    
   4  Prefactor     .91481        .55283E-01    .27021E-03   -.95625    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.44533e-08
Minuit parameter uncertainties:
  1  0.000215495
  2  451.888
  3  0.0454388
  4  0.0552865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811025': 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) = 4661.99953248
delta logL = 2.37450312852e-05

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  2.155e-04  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.762e+00  4.519e+02  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.148e-01  5.529e-02  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:  1.003e+00  4.544e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.964 36.314

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/811025/cmap_HighResolution_493084801_493344001_4FGL_J1127.8+3618_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.22e-03', job_status='DONE', photon_flux_upper_limit='4.18e-08', time_completed='2021-09-03 22:16:36.382569', job_id='811025', GAL2='0.91', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630732596.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.37e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='979' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:16:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 811025: <4FGL_J1127.8+3618_daily_bin979> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin979> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 22:01:02 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:01:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 22:01:14 2021
Terminated at Fri Sep  3 22:16:37 2021
Results reported at Fri Sep  3 22:16:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin979 171.964 36.314 493084801 493344001 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 :                                   787.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             270.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            935 sec.

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

