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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin443
RA = 171.964, Dec = 36.314
tmin = 354153601, tmax = 354412801
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='806800', job_status='RUN', time_executed='2021-09-03 21:48:40.813735', time_epoch_executed='1630730920.81' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='443'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806800/ft1_4FGL_J1127.8+3618_daily_bin443.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806800/ft2_4FGL_J1127.8+3618_daily_bin443.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806800/ft1_4FGL_J1127.8+3618_daily_bin443.fits outfile=/scratch/kocevski/806800/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin443.fits ra=171.964 dec=36.314 rad=12.0 tmin=354153601.0 tmax=354412801.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.97
user 3.72
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806800/ft1_filtered_4FGL_J1127.8+3618_daily_bin443.fits evtable="EVENTS" scfile=/scratch/kocevski/806800/ft2_4FGL_J1127.8+3618_daily_bin443.fits sctable="SC_DATA" expcube=/scratch/kocevski/806800/ltcube_354153601_354412801_4FGL_J1127.8+3618_daily_bin443.fits outfile=/scratch/kocevski/806800/expmap_354153601_354412801_4FGL_J1127.8+3618_daily_bin443.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/806800/ltcube_354153601_354412801_4FGL_J1127.8+3618_daily_bin443.fits
.....................!
real 194.84
user 188.99
sys 3.98

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/806800/ft1_filtered_4FGL_J1127.8+3618_daily_bin443.fits scfile=/scratch/kocevski/806800/ft2_4FGL_J1127.8+3618_daily_bin443.fits outfile=/scratch/kocevski/806800/cmap_354153601_354412801_4FGL_J1127.8+3618_daily_bin443.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806800/ft1_filtered_4FGL_J1127.8+3618_daily_bin443.fits scfile=/scratch/kocevski/806800/ft2_4FGL_J1127.8+3618_daily_bin443.fits outfile=/scratch/kocevski/806800/cmap_HighResolution_354153601_354412801_4FGL_J1127.8+3618_daily_bin443.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.4771       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.174       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.956       1.0000         .10000E-03   10000.    
     8 'norm      '    .83076       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.554       1.0000         .10000E-03   10000.    
    13 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7049       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7190       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9663       1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.798       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2372       1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.465       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.266       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .90974       1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.845       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .88026       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85759       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=   5394.282     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3868 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0613       -.78474E-06** at limit **
   2  Prefactor     2.4771        3.6062        .22961E-06    .91632E-04
   3  Prefactor     .10000E-03    1.4358        .53187E-07** at limit **
   4  Prefactor     .10000E-03    11.116        .81341E-06** at limit **
   5  Prefactor     12.174        14.397       -.22693E-07   -.49157E-05
   6  Prefactor     .10000E-03    44.441        .16405E-06** at limit **
   7  Prefactor     15.959        12.429       -.16182E-07   -.34968E-04
   8  norm          .83081        .27181       -.47710E-08   -.12139E-03
   9  Prefactor     .10000E-03    1.9818        .61113E-07** at limit **
  10  Prefactor     .10000E-03    14.945       -.40544E-06** at limit **
  11  Prefactor     .10000E-03    7.2808        .60616E-06** at limit **
  12  norm          18.556        12.935       -.12371E-06   -.20418E-04
  13  norm          .10000E-03    14.875       -.40817E-06** at limit **
  14  Prefactor     .10000E-03    .76227       -.83486E-07** at limit **
  15  Prefactor     4.7029        32.974       -.24261E-05   -.24398E-04
  16  Prefactor     .10000E-03    4.7040        .20755E-06** at limit **
  17  norm          3.7190        2.5734        .91662E-06   -.10897E-02
  18  Prefactor     .10000E-03    2.7907        .81808E-07** at limit **
  19  Prefactor     1.9647        4.8043        .49067E-06   -.12707E-03
  20  Prefactor     45.790        43.203       -.20266E-05   -.15984E-03
  21  norm          1.2368        1.0114        .78854E-07    .13832E-03
  22  Prefactor     38.463        23.628       -.17269E-06   -.57823E-04
  23  norm          .10000E-03    3.2203        .84861E-07** at limit **
  24  Prefactor     26.264        31.381       -.33520E-06   -.53732E-04
  25  Prefactor     .10000E-03    23.566        .54532E-06** at limit **
  26  norm          .90962        1.2726        .63866E-07   -.56219E-04
  27  Prefactor     16.834        25.957       -.16608E-05   -.22815E-03
  28  Prefactor     .10000E-03    4.8399       -.12513E-06** at limit **
  29  Normalizat    .88045        .16936        .40628E-06   -.54823E-04
  30  Prefactor     .85745        .18804       -.55882E-06    .62586E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.47712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1737
  Prefactor  = 0.0001
  Prefactor  = 15.9588
  norm       = 0.830809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.5557
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.70286
  Prefactor  = 0.0001
  norm       = 3.71903
  Prefactor  = 0.0001
  Prefactor  = 1.96468
  Prefactor  = 45.7899
  norm       = 1.23683
  Prefactor  = 38.4626
  norm       = 0.0001
  Prefactor  = 26.2641
  Prefactor  = 0.0001
  norm       = 0.909622
  Prefactor  = 16.8336
  Prefactor  = 0.0001
  Normalizat = 0.880445
  Prefactor  = 0.857448
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.282     FROM HESSE     STATUS=OK           584 CALLS     4452 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4771        3.5944        .16336E-03   -1.5393    
   3  Prefactor     .10000E-03    1.4403        .85947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.174        14.398        .11481E-03   -1.5010    
   6  Prefactor     .10000E-03    44.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.959        12.400        .10027E-03   -1.4909    
   8  norm          .83081        .27194        .21139E-04   -1.5526    
   9  Prefactor     .10000E-03    2.0427        .20114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.3840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.556        12.928        .92983E-04   -1.4846    
  13  norm          .10000E-03    15.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .76732        .62473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.7029        32.771        .18552E-03   -1.5274    
  16  Prefactor     .10000E-03    4.7292        .15572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7190        2.6537        .45714E-03   -1.5322    
  18  Prefactor     .10000E-03    2.7939        .11986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9647        4.7656        .23224E-03   -1.5428    
  20  Prefactor     45.790        43.752        .59246E-04   -1.4354    
  21  norm          1.2368        .99617        .59725E-04   -1.5486    
  22  Prefactor     38.463        23.661        .64625E-04   -1.4467    
  23  norm          .10000E-03    3.2267        .12875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.264        31.326        .78166E-04   -1.4683    
  25  Prefactor     .10000E-03    23.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .90962        1.2711        .51371E-04   -1.5517    
  27  Prefactor     16.834        26.897        .97585E-04   -1.4887    
  28  Prefactor     .10000E-03    4.8767        .15772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .88045        .19514        .22850E-03   -.97151    
  30  Prefactor     .85745        .21506        .27205E-03   -.97644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82894e-10
Minuit parameter uncertainties:
  1  0.000124131
  2  3.59473
  3  2.09988e-06
  4  0.000139689
  5  14.4026
  6  3.72773e-05
  7  12.4016
  8  0.271944
  9  3.27739e-06
  10  8.72207e-05
  11  8.79682e-05
  12  12.9303
  13  9.02782e-05
  14  2.02149e-06
  15  24.8479
  16  2.32089e-05
  17  2.6538
  18  7.52285e-06
  19  4.76654
  20  43.7831
  21  0.996183
  22  23.6668
  23  8.43517e-06
  24  31.3451
  25  0.000139601
  26  1.27115
  27  26.9162
  28  1.93855e-06
  29  0.195293
  30  0.215275
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  2.021e-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:  8.574e-01  2.153e-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.804e-01  1.953e-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: 5.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806800/likelihoodResults_354153601_354412801_4FGL_J1127.8+3618_daily_bin443.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) = 5394.28847142
delta logL = -0.0060773853711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5394.28239448
delta logL = -4.47214915766e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3585       1.0000          .0000       10.000    
     3 'Normalizat'    .88033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85765       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5394.282     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      244 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5270        .62917E-02** at limit **
   2  Index         1.9145        7.8595        .50000       -.29725E-06
   3  Normalizat    .88045        .12610E-01    .22850E-03    .12200E-03
   4  Prefactor     .85745        .14921E-01    .27206E-03    .12900E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91452
  Normalizat = 0.880447
  Prefactor  = 0.857448
 **********
 **   18 **HESSE 
 **********

 FCN=   5394.282     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    113.92        .67240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9145        8.5844        .50000       -.66505    
   3  Normalizat    .88045        .55687E-01    .91400E-05   -.97151    
   4  Prefactor     .85745        .65864E-01    .10882E-04   -.97644    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.61772e-09
Minuit parameter uncertainties:
  1  3.78811e-05
  2  705.686
  3  0.0556902
  4  0.0658702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806800': 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) = 5394.28238563
delta logL = 8.40285429149e-06

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.788e-05  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.915e+00  7.057e+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:  8.574e-01  6.587e-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:  8.804e-01  5.569e-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/806800/cmap_HighResolution_354153601_354412801_4FGL_J1127.8+3618_daily_bin443.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.19e-08', time_completed='2021-09-03 22:02:44.731342', job_id='806800', GAL2='0.86', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630731764.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='8.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='443' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:02:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 806800: <4FGL_J1127.8+3618_daily_bin443> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin443> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep  3 21:46:21 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:46:24 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:46:24 2021
Terminated at Fri Sep  3 22:02:45 2021
Results reported at Fri Sep  3 22:02:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin443 171.964 36.314 354153601 354412801 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 :                                   835.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            984 sec.

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

