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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin808
RA = 171.964, Dec = 36.314
tmin = 448761601, tmax = 449020801
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='809398', job_status='RUN', time_executed='2021-09-03 21:57:59.719749', time_epoch_executed='1630731479.72' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='808'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809398

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809398/ft1_4FGL_J1127.8+3618_daily_bin808.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809398/ft2_4FGL_J1127.8+3618_daily_bin808.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809398/ft1_4FGL_J1127.8+3618_daily_bin808.fits outfile=/scratch/kocevski/809398/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin808.fits ra=171.964 dec=36.314 rad=12.0 tmin=448761601.0 tmax=449020801.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.93
user 5.48
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809398/ft2_4FGL_J1127.8+3618_daily_bin808.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/809398/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin808.fits evtable="EVENTS" outfile="/scratch/kocevski/809398/ft1_filtered_4FGL_J1127.8+3618_daily_bin808.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.53
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809398/ft1_filtered_4FGL_J1127.8+3618_daily_bin808.fits evtable="EVENTS" scfile=/scratch/kocevski/809398/ft2_4FGL_J1127.8+3618_daily_bin808.fits sctable="SC_DATA" expcube=/scratch/kocevski/809398/ltcube_448761601_449020801_4FGL_J1127.8+3618_daily_bin808.fits outfile=/scratch/kocevski/809398/expmap_448761601_449020801_4FGL_J1127.8+3618_daily_bin808.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/809398/ltcube_448761601_449020801_4FGL_J1127.8+3618_daily_bin808.fits
.....................!
real 190.85
user 185.79
sys 4.66

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/809398/ft1_filtered_4FGL_J1127.8+3618_daily_bin808.fits scfile=/scratch/kocevski/809398/ft2_4FGL_J1127.8+3618_daily_bin808.fits outfile=/scratch/kocevski/809398/cmap_448761601_449020801_4FGL_J1127.8+3618_daily_bin808.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809398/ft1_filtered_4FGL_J1127.8+3618_daily_bin808.fits scfile=/scratch/kocevski/809398/ft2_4FGL_J1127.8+3618_daily_bin808.fits outfile=/scratch/kocevski/809398/cmap_HighResolution_448761601_449020801_4FGL_J1127.8+3618_daily_bin808.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.594       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.583       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8105       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4289       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.569       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.0609       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4816       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17333       1.0000         .10000E-03   10000.    
    23 'norm      '    3.0742       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    34.004       1.0000         .10000E-03   10000.    
    26 'norm      '    1.7823       1.0000         .10000E-03   10000.    
    27 'Prefactor '    53.474       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.9397       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .71230       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4491.862     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     3282 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10184E-03    28.474       -.60981E-06** at limit **
   2  Prefactor     .10000E-03    3.7806        .19812E-07** at limit **
   3  Prefactor     10.596        1.0348       -.45315E-06   -.49107E-03
   4  Prefactor     .10004E-03    32.260       -.58647E-04** at limit **
   5  Prefactor     20.574        1.1937        .21538E-06   -.48907E-03
   6  Prefactor     .10027E-03    28.037        .19188E-04** at limit **
   7  Prefactor     .10000E-03    7.3226        .52367E-07** at limit **
   8  norm          1.8104        .43627        .30620E-07    .92268E-03
   9  Prefactor     1.4273        3.2375        .46087E-06    .79961E-04
  10  Prefactor     30.573        1.2424        .19954E-06   -.57496E-03
  11  Prefactor     .10017E-03    8.1522        .96959E-05** at limit **
  12  norm          .10001E-03    18.528       -.10714E-04** at limit **
  13  norm          .10000E-03    5.0060        .55016E-06** at limit **
  14  Prefactor     .10000E-03    2.4733        .41717E-06** at limit **
  15  Prefactor     .10008E-03    27.949        .50785E-04** at limit **
  16  Prefactor     .10025E-03    6.1826       -.19112E-04** at limit **
  17  norm          4.0596        3.0990       -.24804E-06   -.29889E-03
  18  Prefactor     .10002E-03    9.9820        .68388E-05** at limit **
  19  Prefactor     .10000E-03    6.2372       -.81371E-06** at limit **
  20  Prefactor     .10085E-03    28.328        .23040E-04** at limit **
  21  norm          1.4815        1.2407        .41244E-07    .18889E-03
  22  Prefactor     .10002E-03    442.24       -.56113E-04** at limit **
  23  norm          3.0719        1.1236        .18604E-05   -.15651E-03
  24  Prefactor     .10001E-03    14.233        .46395E-05** at limit **
  25  Prefactor     34.002        1.0345       -.28161E-06    .57638E-03
  26  norm          1.7826        1.1742        .25288E-07    .14167E-02
  27  Prefactor     53.474        1.0207       -.20409E-06    .68654E-03
  28  Prefactor     6.9387        1.0146        .32667E-06    .11863E-03
  29  Normalizat    .71231        .23280       -.70710E-06    .29688E-03
  30  Prefactor     1.3225        .28290       -.31090E-06    .27736E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101844
  Prefactor  = 0.0001
  Prefactor  = 10.5955
  Prefactor  = 0.000100041
  Prefactor  = 20.5739
  Prefactor  = 0.000100268
  Prefactor  = 0.0001
  norm       = 1.81044
  Prefactor  = 1.42727
  Prefactor  = 30.5727
  Prefactor  = 0.000100169
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100079
  Prefactor  = 0.000100248
  norm       = 4.05958
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 0.000100852
  norm       = 1.48147
  Prefactor  = 0.000100023
  norm       = 3.07194
  Prefactor  = 0.000100012
  Prefactor  = 34.0019
  norm       = 1.7826
  Prefactor  = 53.4736
  Prefactor  = 6.93873
  Normalizat = 0.71231
  Prefactor  = 1.32247
 **********
 **   18 **HESSE 
 **********

 FCN=   4491.862     FROM HESSE     STATUS=OK           660 CALLS     3942 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10184E-03    79.591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.7254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.596        7.0595        .30774E-02   -1.5057    
   4  Prefactor     .10004E-03    34.796        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.574        27.920        .22071E-02   -1.4800    
   6  Prefactor     .10027E-03    83.987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8104        .45048        .47535E-02   -1.5439    
   9  Prefactor     1.4273        3.2844        .90367E-02   -1.5469    
  10  Prefactor     30.573        21.169        .18117E-02   -1.4602    
  11  Prefactor     .10017E-03    11.660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    18.733        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.9941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.5761        .32551E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10008E-03    30.499        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10025E-03    11.066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.0596        3.1609        .50021E-02   -1.5305    
  18  Prefactor     .10002E-03    10.438        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.0501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10085E-03    84.656        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4815        1.2984        .88143E-02   -1.5465    
  22  Prefactor     .10002E-03    22.515        .11071       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.0719        21.182        .57836E-02   -1.5357    
  24  Prefactor     .10001E-03    14.682        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     34.002        50.302        .17180E-02   -1.4541    
  26  norm          1.7826        1.1851        .78364E-02   -1.5441    
  27  Prefactor     53.474        40.811        .13712E-02   -1.4244    
  28  Prefactor     6.9387        9.8090        .38073E-02   -1.5181    
  29  Normalizat    .71231        .20280        .63025E-01   -1.0341    
  30  Prefactor     1.3225        .23889        .58729E-01   -.82641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13747e-07
Minuit parameter uncertainties:
  1  0.0242592
  2  4.30547e-06
  3  7.06008
  4  0.00238595
  5  27.9381
  6  0.00949917
  7  4.02491e-06
  8  0.450478
  9  3.28485
  10  21.1746
  11  0.00280746
  12  0.000627678
  13  1.98345e-05
  14  1.49796e-05
  15  0.00310608
  16  0.00331667
  17  3.16105
  18  0.000891461
  19  7.16078e-05
  20  0.0170078
  21  1.29846
  22  0.00142472
  23  16.141
  24  0.000852697
  25  50.3652
  26  1.18508
  27  40.8321
  28  9.81123
  29  0.20301
  30  0.239085
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.498e-05  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.322e+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.123e-01  2.030e-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: 8.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/809398/likelihoodResults_448761601_449020801_4FGL_J1127.8+3618_daily_bin808.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) = 4491.86427755
delta logL = -0.00192735894234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4491.86235046
delta logL = -2.66316419584e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3792       1.0000          .0000       10.000    
     3 'Normalizat'    .71237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3225       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=   4491.862     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      230 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .24837        .32301E-01** at limit **
   2  Index         2.3869        7.4471        .50000       -.26302E-04
   3  Normalizat    .71231        .19830E-02    .63025E-01   -.45505E-05
   4  Prefactor     1.3225        .24498E-02    .58728E-01   -.12732E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.38685
  Normalizat = 0.712309
  Prefactor  = 1.32247
 **********
 **   18 **HESSE 
 **********

 FCN=   4491.862     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      265 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.139        .15998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3869        6.2464        .50000       -.54993    
   3  Normalizat    .71231        .16543E-01    .27881E-03   -1.0341    
   4  Prefactor     1.3225        .20459E-01    .25970E-03   -.82641    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34901e-06
Minuit parameter uncertainties:
  1  9.20265e-05
  2  185.246
  3  0.0165431
  4  0.020459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809398': 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) = 4491.86235009
delta logL = 1.02104422695e-07

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  9.203e-05  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.387e+00  1.852e+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:  1.322e+00  2.046e-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:  7.123e-01  1.654e-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/809398/cmap_HighResolution_448761601_449020801_4FGL_J1127.8+3618_daily_bin808.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.30e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-09-03 22:10:21.168683', job_id='809398', GAL2='1.32', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1630732221.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='1.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='808' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:10:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 809398: <4FGL_J1127.8+3618_daily_bin808> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin808 171.964 36.314 448761601 449020801 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 :                                   738.51 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            862 sec.

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

