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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin653
RA = 171.964, Dec = 36.314
tmin = 408585601, tmax = 408844801
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='808166', job_status='RUN', time_executed='2021-09-03 21:55:56.818511', time_epoch_executed='1630731356.82' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808166

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808166/ft1_4FGL_J1127.8+3618_daily_bin653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808166/ft2_4FGL_J1127.8+3618_daily_bin653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808166/ft1_4FGL_J1127.8+3618_daily_bin653.fits outfile=/scratch/kocevski/808166/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin653.fits ra=171.964 dec=36.314 rad=12.0 tmin=408585601.0 tmax=408844801.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 4.36
user 4.13
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808166/ft1_filtered_4FGL_J1127.8+3618_daily_bin653.fits evtable="EVENTS" scfile=/scratch/kocevski/808166/ft2_4FGL_J1127.8+3618_daily_bin653.fits sctable="SC_DATA" expcube=/scratch/kocevski/808166/ltcube_408585601_408844801_4FGL_J1127.8+3618_daily_bin653.fits outfile=/scratch/kocevski/808166/expmap_408585601_408844801_4FGL_J1127.8+3618_daily_bin653.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/808166/ltcube_408585601_408844801_4FGL_J1127.8+3618_daily_bin653.fits
.....................!
real 193.67
user 188.57
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/808166/ft1_filtered_4FGL_J1127.8+3618_daily_bin653.fits scfile=/scratch/kocevski/808166/ft2_4FGL_J1127.8+3618_daily_bin653.fits outfile=/scratch/kocevski/808166/cmap_408585601_408844801_4FGL_J1127.8+3618_daily_bin653.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808166/ft1_filtered_4FGL_J1127.8+3618_daily_bin653.fits scfile=/scratch/kocevski/808166/ft2_4FGL_J1127.8+3618_daily_bin653.fits outfile=/scratch/kocevski/808166/cmap_HighResolution_408585601_408844801_4FGL_J1127.8+3618_daily_bin653.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.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8003       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.165       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11348E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.099       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .52882E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10764E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    16.092       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.193       1.0000         .10000E-03   10000.    
    17 'norm      '    .91260       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2887       1.0000         .10000E-03   10000.    
    20 'Prefactor '    211.90       1.0000         .10000E-03   10000.    
    21 'norm      '    5.2061       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.094       1.0000         .10000E-03   10000.    
    23 'norm      '    11.602       1.0000         .10000E-03   10000.    
    24 'Prefactor '    44.031       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .48949       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .28578       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.1402       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5124       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .20682       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=   3481.860     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4152 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.310       -.24722E-06** at limit **
   2  Prefactor     .10000E-03    6.1584       -.28947E-07** at limit **
   3  Prefactor     2.8079        11.037        .61940E-06   -.11984E-03
   4  Prefactor     .10000E-03    35.002        .29157E-06** at limit **
   5  Prefactor     17.181        32.636       -.87374E-06   -.30500E-04
   6  Prefactor     .10000E-03    694.10        .14987E-06** at limit **
   7  Prefactor     20.110        16.165       -.11322E-05    .48687E-03
   8  norm          1.4930        .49956       -.55707E-08   -.87696E-03
   9  Prefactor     .14848E-03    2.2901       -.23267E-06** at limit **
  10  Prefactor     .10000E-03    61.933       -.63408E-06** at limit **
  11  Prefactor     .10000E-03    30.265       -.15554E-06** at limit **
  12  norm          16.097        18.013       -.28528E-06   -.10447E-03
  13  norm          .10000E-03    11.417       -.12692E-07** at limit **
  14  Prefactor     .10000E-03    2.1776       -.54716E-07** at limit **
  15  Prefactor     .10000E-03    41.675       -.29510E-06** at limit **
  16  Prefactor     14.193        26.386       -.42416E-06    .24743E-04
  17  norm          .91154        3.0229        .25764E-06   -.29953E-03
  18  Prefactor     .10000E-03    5.4649        .20412E-06** at limit **
  19  Prefactor     8.2870        8.5202       -.13315E-06   -.14078E-03
  20  Prefactor     211.96        126.33        .58707E-06   -.10892E-04
  21  norm          5.2045        3.3102       -.12599E-06   -.22063E-03
  22  Prefactor     28.094        22.356       -.13991E-06   -.12231E-03
  23  norm          11.600        13.712       -.69490E-07   -.17333E-04
  24  Prefactor     43.784        52.658       -.14822E-06   -.99346E-04
  25  Prefactor     .10000E-03    38.804       -.33608E-07** at limit **
  26  norm          .48845        1.0584       -.18822E-06   -.10978E-03
  27  Prefactor     1.6455        800.29        .49410E-06   -.35534E-05
  28  Prefactor     9.1235        9.9817       -.98678E-07   -.46787E-04
  29  Normalizat    1.5110        .31388       -.53898E-05    .17312E-03
  30  Prefactor     .20782        .33106        .14532E-04    .11692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.8079
  Prefactor  = 0.0001
  Prefactor  = 17.181
  Prefactor  = 0.000100001
  Prefactor  = 20.1099
  norm       = 1.49297
  Prefactor  = 0.00014848
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 16.0972
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1931
  norm       = 0.911539
  Prefactor  = 0.0001
  Prefactor  = 8.28696
  Prefactor  = 211.96
  norm       = 5.20453
  Prefactor  = 28.0943
  norm       = 11.6003
  Prefactor  = 43.7837
  Prefactor  = 0.0001
  norm       = 0.488451
  Prefactor  = 1.64554
  Prefactor  = 9.12351
  Normalizat = 1.51099
  Prefactor  = 0.207819
 **********
 **   18 **HESSE 
 **********

 FCN=   3481.860     FROM HESSE     STATUS=OK           594 CALLS     4746 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.1832        .14299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8079        11.006        .24311E-03   -1.5373    
   4  Prefactor     .10000E-03    34.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.181        32.651        .96671E-04   -1.4879    
   6  Prefactor     .10000E-03    697.21        .20677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.110        16.573        .89339E-04   -1.4811    
   8  norm          1.4930        .49918        .23066E-04   -1.5464    
   9  Prefactor     .14848E-03    5.6370        .28703E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    62.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          16.097        18.031        .99842E-04   -1.4905    
  13  norm          .10000E-03    11.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2137        .84824E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    41.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.193        26.465        .10632E-03   -1.4954    
  17  norm          .91154        2.8880        .17302E-03   -1.5517    
  18  Prefactor     .10000E-03    5.4618        .13463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2870        8.5001        .13925E-03   -1.5132    
  20  Prefactor     211.96        126.22        .13887E-03   -1.2786    
  21  norm          5.2045        3.3247        .69525E-04   -1.5252    
  22  Prefactor     28.094        22.434        .75585E-04   -1.4647    
  23  norm          11.600        13.712        .11761E-03   -1.5027    
  24  Prefactor     43.784        50.412        .60418E-04   -1.4384    
  25  Prefactor     .10000E-03    38.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .48845        .91769        .84733E-03   -1.5568    
  27  Prefactor     1.6455        735.12        .41450E-03   -1.5451    
  28  Prefactor     9.1235        9.9453        .13257E-03   -1.5104    
  29  Normalizat    1.5110        .31798        .22011E-03   -.77470    
  30  Prefactor     .20782        .32257        .58609E-03   -1.2815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99459e-09
Minuit parameter uncertainties:
  1  0.000112139
  2  3.02933e-06
  3  11.014
  4  0.000199773
  5  32.6845
  6  0.00128845
  7  16.5772
  8  0.499183
  9  0.0330654
  10  0.000419852
  11  2.11086e-05
  12  18.0369
  13  1.00703e-05
  14  6.09799e-07
  15  0.000117066
  16  26.4864
  17  2.88841
  18  1.70118e-05
  19  8.50136
  20  126.386
  21  3.32482
  22  22.4404
  23  13.7157
  24  50.4611
  25  2.61531e-05
  26  0.917715
  27  70.4465
  28  9.94713
  29  0.318404
  30  0.325381
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  6.098e-07  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:  2.078e-01  3.254e-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.511e+00  3.184e-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: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/808166/likelihoodResults_408585601_408844801_4FGL_J1127.8+3618_daily_bin653.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) = 3481.86253413
delta logL = -0.00208231706756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3481.86045196
delta logL = -1.41729287861e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3565       1.0000          .0000       10.000    
     3 'Normalizat'    1.5111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .20774       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3481.860     FROM MIGRAD    STATUS=FAILED        86 CALLS      236 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    55.094        .85622E-03** at limit **
   2  Index         2.3041        5.0355        .50000        .45218E-04
   3  Normalizat    1.5110        .30614E-01    .22011E-03    .43034E-04
   4  Prefactor     .20782        .32637E-01    .58609E-03    .14141E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3481.860     FROM SIMPLEX   STATUS=UNCHANGED    143 CALLS      379 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10093E-03    55.094        .22121E-03** at limit **
   2  Index         2.3041        5.0355        .40090E-03    .45218E-04
   3  Normalizat    1.5110        .30614E-01    .54782E-05    .43034E-04
   4  Prefactor     .20782        .32637E-01    .13912E-04    .14141E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3481.860     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      425 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.709        .17124E-02** at limit **
   2  Index         2.1035        8.6721        .50000        .15252E-06
   3  Normalizat    1.5110        .25797E-01    .44023E-04   -.37515E-03
   4  Prefactor     .20781        .27502E-01    .23444E-04   -.13947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10352
  Normalizat = 1.511
  Prefactor  = 0.207814
 **********
 **   18 **HESSE 
 **********

 FCN=   3481.860     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      454 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    183.59        .34249E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1035        8.4897        .50000       -.61787    
   3  Normalizat    1.5110        .58615E-01    .88046E-05   -.77470    
   4  Prefactor     .20781        .62468E-01    .46887E-05   -1.2815    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.18883e-10
Minuit parameter uncertainties:
  1  2.8052e-05
  2  577.548
  3  0.0586176
  4  0.062488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808166': 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) = 3481.86044994
delta logL = 1.87861633094e-06

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  2.805e-05  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.104e+00  5.775e+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:  2.078e-01  6.249e-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.511e+00  5.862e-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/808166/cmap_HighResolution_408585601_408844801_4FGL_J1127.8+3618_daily_bin653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.28e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-03 22:07:22.496984', job_id='808166', GAL2='0.21', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630732042.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.21', dlogl='1.88e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='653' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:07:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 808166: <4FGL_J1127.8+3618_daily_bin653> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin653> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 21:51:19 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:52:55 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:52:55 2021
Terminated at Fri Sep  3 22:07:23 2021
Results reported at Fri Sep  3 22:07:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin653 171.964 36.314 408585601 408844801 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 :                                   685.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             294.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            964 sec.

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

