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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin1350
RA = 171.964, Dec = 36.314
tmin = 589248001, tmax = 589507201
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='811561', job_status='RUN', time_executed='2021-09-03 22:03:44.619923', time_epoch_executed='1630731824.62' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811561

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811561/ft1_4FGL_J1127.8+3618_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811561/ft2_4FGL_J1127.8+3618_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811561/ft1_4FGL_J1127.8+3618_daily_bin1350.fits outfile=/scratch/kocevski/811561/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin1350.fits ra=171.964 dec=36.314 rad=12.0 tmin=589248001.0 tmax=589507201.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.17
user 2.96
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811561/ft1_filtered_4FGL_J1127.8+3618_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/811561/ft2_4FGL_J1127.8+3618_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/811561/ltcube_589248001_589507201_4FGL_J1127.8+3618_daily_bin1350.fits outfile=/scratch/kocevski/811561/expmap_589248001_589507201_4FGL_J1127.8+3618_daily_bin1350.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/811561/ltcube_589248001_589507201_4FGL_J1127.8+3618_daily_bin1350.fits
.....................!
real 191.18
user 185.79
sys 4.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/811561/ft1_filtered_4FGL_J1127.8+3618_daily_bin1350.fits scfile=/scratch/kocevski/811561/ft2_4FGL_J1127.8+3618_daily_bin1350.fits outfile=/scratch/kocevski/811561/cmap_589248001_589507201_4FGL_J1127.8+3618_daily_bin1350.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=171.964 yref=36.314 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .42811E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .28348E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.798       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0967       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13802E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11452E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.075       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10725E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3893       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.009       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    66.574       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10211E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    60.739       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.8293       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=   1248.319     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     4736 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        7670.9        .94816E-03** at limit **
   2  Prefactor    10000.0        449.56       -.46241E-03** at limit **
   3  Prefactor    10000.0        768.66       -.43850E-04** at limit **
   4  Prefactor     10000.        6423.8        .76459E-03** at limit **
   5  Prefactor    10000.0        1745.8        .12860E-03** at limit **
   6  Prefactor     .10000E-03    845.31       -.20280E-03** at limit **
   7  Prefactor     .10003E-03    2247.7       -.24175E-02** at limit **
   8  norm          .10000E-03    1.2702        .64758E-08** at limit **
   9  Prefactor     .10000E-03    46.159       -.40652E-04** at limit **
  10  Prefactor     .10000E-03    52.130        .21999E-04** at limit **
  11  Prefactor     .10000E-03    48.584       -.18336E-04** at limit **
  12  norm          .10000E-03    71.740        .22088E-05** at limit **
  13  norm          15.719        101.55       -.65138E-04    .11947E-03
  14  Prefactor     1.1361        23.068        .39190E-05   -.11475E-03
  15  Prefactor     .10000E-03    76.769       -.13376E-04** at limit **
  16  Prefactor     .10000E-03    39.558        .18776E-04** at limit **
  17  norm          .10000E-03    3.4490        .91529E-08** at limit **
  18  Prefactor     .10000E-03    23.518       -.71995E-05** at limit **
  19  Prefactor     25.030        22.490       -.49426E-05   -.24384E-05
  20  Prefactor     .10000E-03    81.761       -.51799E-04** at limit **
  21  norm          2.3894        2.3726       -.12121E-06   -.28423E-03
  22  Prefactor     33.045        58.691        .62886E-05    .52302E-04
  23  norm          .10000E-03    8.2332       -.52767E-08** at limit **
  24  Prefactor     66.570        82.651       -.10425E-04    .14642E-05
  25  Prefactor     .10000E-03    63.450        .70849E-04** at limit **
  26  norm          .10000E-03    3.1952       -.19374E-06** at limit **
  27  Prefactor     60.769        77.964        .83557E-05   -.20112E-04
  28  Prefactor     .10000E-03    22.349        .63774E-05** at limit **
  29  Normalizat    .10000E-01    .26753        .34917E-05** at limit **
  30  Prefactor     1.8288        .33603        .30091E-05   -.77903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.7189
  Prefactor  = 1.13611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0303
  Prefactor  = 0.0001
  norm       = 2.38936
  Prefactor  = 33.0451
  norm       = 0.0001
  Prefactor  = 66.5705
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 60.7688
  Prefactor  = 0.000100001
  Normalizat = 0.01
  Prefactor  = 1.82877
 **********
 **   18 **HESSE 
 **********

 FCN=   1248.319     FROM HESSE     STATUS=OK           568 CALLS     5304 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        7671.1        .19664E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        449.68        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        768.67        .21290E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10000.        6423.9        .19583E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        1745.9        .21217E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    845.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    2247.5        .18470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2705        .38893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    46.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    52.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    48.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    71.745        .21413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.719        101.57        .10077E-03   -1.4915    
  14  Prefactor     1.1361        22.468        .29975E-03   -1.5495    
  15  Prefactor     .10000E-03    76.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    39.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.4577        .64064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.524        .16741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.030        21.959        .79997E-04   -1.4707    
  20  Prefactor     .10000E-03    81.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3894        2.3583        .50919E-04   -1.5399    
  22  Prefactor     33.045        57.804        .69744E-04   -1.4558    
  23  norm          .10000E-03    8.2350        .99033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     66.570        82.319        .49189E-04   -1.4074    
  25  Prefactor     .10000E-03    63.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.6343        .11914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     60.769        77.959        .51483E-04   -1.4147    
  28  Prefactor     .10000E-03    23.368        .32602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .30230        .98820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.8288        .30944        .24731E-03   -.68703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.64327e-10
Minuit parameter uncertainties:
  1  0.000217039
  2  3.96827e-05
  3  0.000129847
  4  7.48408e-05
  5  0.000899944
  6  1.31057e-05
  7  0.0176834
  8  6.97609e-07
  9  0.000399322
  10  1.48288e-05
  11  4.05746e-06
  12  6.22428e-05
  13  80.1138
  14  10.1087
  15  4.28452e-06
  16  0.000208612
  17  1.75881e-06
  18  0.000115175
  19  21.9664
  20  8.45573e-06
  21  2.35836
  22  57.9025
  23  2.99017e-06
  24  82.4603
  25  2.68727e-05
  26  4.13896e-05
  27  78.0907
  28  0.000289726
  29  6.10124e-06
  30  0.309775
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.136e+00  1.011e+01  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.829e+00  3.098e-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.000e-02  6.101e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 4.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/811561/likelihoodResults_589248001_589507201_4FGL_J1127.8+3618_daily_bin1350.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) = 1248.20760326
delta logL = 0.11091486615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1248.08585522
delta logL = 0.232662906305

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13812E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.8917       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8174       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=   1248.086     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      243 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13139E-01    .70728        .14973E-02   -.56957E-03
   2  Index         5.9173        7.5222        .12736        .39605E-05
   3  Normalizat    .10000E-01    .45535E-01    .32094E-01** at limit **
   4  Prefactor     1.8169        .11482        .55865E-01   -.99876E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0131392
  Index      = 5.91734
  Normalizat = 0.01
  Prefactor  = 1.81694
 **********
 **   18 **HESSE 
 **********

 FCN=   1248.086     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      274 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13139E-01    2.1275        .67529E-04   -1.5685    
   2  Index         5.9173        7.2507        .46388E-02    .18451    
   3  Normalizat    .10000E-01    .24042        .56022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8169        .26424        .24691E-03   -.69010    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.30533e-11
Minuit parameter uncertainties:
  1  0.333126
  2  12.42
  3  1.71016e-06
  4  0.264442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811561': 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) = 1248.08584
delta logL = 0.232678131558

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.817e+00  2.644e-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.000e-02  1.710e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/811561/cmap_HighResolution_589248001_589507201_4FGL_J1127.8+3618_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-02', job_status='DONE', photon_flux_upper_limit='4.16e-07', time_completed='2021-09-03 22:11:48.836523', job_id='811561', GAL2='1.82', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630732308.84', return_code2='102', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.83', dlogl='2.33e-01', ts2='0.48', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1350' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:11:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 811561: <4FGL_J1127.8+3618_daily_bin1350> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin1350> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 22:01:37 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:03:25 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:03:25 2021
Terminated at Fri Sep  3 22:11:49 2021
Results reported at Fri Sep  3 22:11:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin1350 171.964 36.314 589248001 589507201 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 :                                   477.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   504 sec.
    Turnaround time :                            612 sec.

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

