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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin237
RA = 171.964, Dec = 36.314
tmin = 300758401, tmax = 301017601
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='805149', job_status='RUN', time_executed='2021-09-03 21:42:19.101750', time_epoch_executed='1630730539.1' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='237'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805149

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805149/ft1_4FGL_J1127.8+3618_daily_bin237.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805149/ft2_4FGL_J1127.8+3618_daily_bin237.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805149/ft1_4FGL_J1127.8+3618_daily_bin237.fits outfile=/scratch/kocevski/805149/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin237.fits ra=171.964 dec=36.314 rad=12.0 tmin=300758401.0 tmax=301017601.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.56
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805149/ft1_filtered_4FGL_J1127.8+3618_daily_bin237.fits" evtable="EVENTS" scfile=/scratch/kocevski/805149/ft2_4FGL_J1127.8+3618_daily_bin237.fits sctable="SC_DATA" outfile=/scratch/kocevski/805149/ltcube_300758401_301017601_4FGL_J1127.8+3618_daily_bin237.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/805149/ft2_4FGL_J1127.8+3618_daily_bin237.fits
.....................!
real 14.43
user 13.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805149/ft1_filtered_4FGL_J1127.8+3618_daily_bin237.fits evtable="EVENTS" scfile=/scratch/kocevski/805149/ft2_4FGL_J1127.8+3618_daily_bin237.fits sctable="SC_DATA" expcube=/scratch/kocevski/805149/ltcube_300758401_301017601_4FGL_J1127.8+3618_daily_bin237.fits outfile=/scratch/kocevski/805149/expmap_300758401_301017601_4FGL_J1127.8+3618_daily_bin237.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/805149/ltcube_300758401_301017601_4FGL_J1127.8+3618_daily_bin237.fits
.....................!
real 191.76
user 185.88
sys 5.08

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/805149/ft1_filtered_4FGL_J1127.8+3618_daily_bin237.fits scfile=/scratch/kocevski/805149/ft2_4FGL_J1127.8+3618_daily_bin237.fits outfile=/scratch/kocevski/805149/cmap_300758401_301017601_4FGL_J1127.8+3618_daily_bin237.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.65
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805149/ft1_filtered_4FGL_J1127.8+3618_daily_bin237.fits scfile=/scratch/kocevski/805149/ft2_4FGL_J1127.8+3618_daily_bin237.fits outfile=/scratch/kocevski/805149/cmap_HighResolution_300758401_301017601_4FGL_J1127.8+3618_daily_bin237.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.411       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1737       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2785       1.0000         .10000E-03   10000.    
     8 'norm      '    .66768       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .99730       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    45.973       1.0000         .10000E-03   10000.    
    13 'norm      '    .14464E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9252       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .66633E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .96392E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35169E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .43979       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    48.773       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.1321       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.7818       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0158       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95613       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=   6367.720     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3897 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.404        23.613        .17049E-06   -.40829E-05
   2  Prefactor     3.1738        4.2718        .50584E-06    .23985E-03
   3  Prefactor     .10000E-03    3.1881       -.24377E-06** at limit **
   4  Prefactor     .10000E-03    10.822        .70390E-07** at limit **
   5  Prefactor     .10000E-03    14.599        .11174E-06** at limit **
   6  Prefactor     .10000E-03    20.787       -.12556E-06** at limit **
   7  Prefactor     3.2791        6.7313        .71152E-06    .13330E-03
   8  norm          .66768        .24718        .11321E-07   -.33211E-03
   9  Prefactor     .99728        1.3209        .83936E-08   -.17322E-03
  10  Prefactor     .10000E-03    6.3887        .76341E-07** at limit **
  11  Prefactor     .10000E-03    3.8374        .19912E-07** at limit **
  12  norm          45.977        16.164       -.21895E-07   -.21195E-03
  13  norm          .10005E-03    10.597        .30058E-05** at limit **
  14  Prefactor     6.9233        2.7661       -.30706E-06   -.15081E-02
  15  Prefactor     .10000E-03    22.068       -.30688E-07** at limit **
  16  Prefactor     .10000E-03    9.6824       -.56842E-08** at limit **
  17  norm          .18538E-01    .92879        .36342E-06   -.26093E-03
  18  Prefactor     .10004E-03    6.5313        .15632E-05** at limit **
  19  Prefactor     .10000E-03    3.8195       -.98264E-06** at limit **
  20  Prefactor     .10000E-03    38.308        .29228E-06** at limit **
  21  norm          .43912        .75110        .16295E-06    .51239E-04
  22  Prefactor     .10000E-03    5.4622        .77721E-07** at limit **
  23  norm          .10000E-03    3.1031        .96422E-08** at limit **
  24  Prefactor     48.795        26.588       -.92645E-06   -.31341E-03
  25  Prefactor     .10000E-03    26.136        .67987E-07** at limit **
  26  norm          4.1322        1.4111        .74729E-08   -.60518E-03
  27  Prefactor     5.7435        24.551        .88368E-06   -.50400E-04
  28  Prefactor     .10000E-03    2.0631       -.17023E-06** at limit **
  29  Normalizat    1.0158        .17200       -.19961E-05   -.83814E-03
  30  Prefactor     .95593        .20115        .94847E-06   -.59002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4041
  Prefactor  = 3.17382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.27907
  norm       = 0.667677
  Prefactor  = 0.997283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 45.9769
  norm       = 0.000100055
  Prefactor  = 6.92333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0185376
  Prefactor  = 0.000100044
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.439118
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.7951
  Prefactor  = 0.0001
  norm       = 4.13216
  Prefactor  = 5.74346
  Prefactor  = 0.0001
  Normalizat = 1.01584
  Prefactor  = 0.955935
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.720     FROM HESSE     STATUS=OK           590 CALLS     4487 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.404        23.563        .93343E-04   -1.4850    
   2  Prefactor     3.1738        4.2860        .18607E-03   -1.5352    
   3  Prefactor     .10000E-03    3.2164        .13871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.2791        6.7453        .22363E-03   -1.5346    
   8  norm          .66768        .24635        .23360E-04   -1.5545    
   9  Prefactor     .99728        1.3198        .52625E-04   -1.5508    
  10  Prefactor     .10000E-03    6.4140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.8394        .15266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          45.977        16.163        .59133E-04   -1.4351    
  13  norm          .10005E-03    27.507        .38472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9233        2.8035        .78880E-04   -1.5182    
  15  Prefactor     .10000E-03    22.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.7263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .18538E-01    2.1185        .26365E-01   -1.5681    
  18  Prefactor     .10004E-03    41.052        .35890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5542        .26479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .43912        .75103        .44090E-04   -1.5575    
  22  Prefactor     .10000E-03    5.4709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.1066        .13728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     48.795        26.657        .57419E-04   -1.4310    
  25  Prefactor     .10000E-03    26.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.1322        1.4102        .53094E-04   -1.5301    
  27  Prefactor     5.7435        24.504        .16703E-03   -1.5229    
  28  Prefactor     .10000E-03    2.0651        .11191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0158        .19816        .23280E-03   -.92502    
  30  Prefactor     .95593        .23102        .28726E-03   -.94213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46809e-09
Minuit parameter uncertainties:
  1  23.5747
  2  4.28642
  3  1.38188e-05
  4  2.62961e-05
  5  3.27341e-05
  6  5.72616e-05
  7  6.7469
  8  0.246346
  9  1.31987
  10  1.29154e-05
  11  3.05016e-06
  12  16.1647
  13  0.0024528
  14  2.80358
  15  1.38133e-05
  16  1.96848e-05
  17  0.39529
  18  0.00267624
  19  0.000225271
  20  0.000138291
  21  0.751045
  22  8.85168e-06
  23  1.04204e-06
  24  26.6637
  25  3.53182e-05
  26  1.4102
  27  23.7428
  28  7.97865e-06
  29  0.1983
  30  0.231259
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  6.923e+00  2.804e+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

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  9.559e-01  2.313e-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.016e+00  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.59
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 9.85e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 1.36e-05

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): 0
logL (Free Index) = 6367.51598167
delta logL = 0.203550849723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6367.51490009
delta logL = 0.204632428362

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2714       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1198       1.0000          .0000       10.000    
     3 'Normalizat'    1.0394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93572       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=   6367.515     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      237 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2690        60.616        .34849E-02    .15437E-03
   2  Index         2.1196        3.3142        .14414        .12474E-03
   3  Normalizat    1.0393        .12801        .41326E-01   -.18249E-03
   4  Prefactor     .93568        .11004        .65617E-01   -.19159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.269
  Index      = 2.11961
  Normalizat = 1.03926
  Prefactor  = 0.935682
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.515     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2690        3.7538        .90196E-04   -1.5133    
   2  Index         2.1196        .38423        .54226E-02   -.61392    
   3  Normalizat    1.0393        .19460        .23064E-03   -.91727    
   4  Prefactor     .93568        .23152        .29022E-03   -.94905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0346e-10
Minuit parameter uncertainties:
  1  3.75388
  2  0.384799
  3  0.194736
  4  0.231763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805149': 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): 0
logL (Free Index) = 6367.51489652
delta logL = 0.204636006009

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  8.269e+00  3.754e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.120e+00  3.848e-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:  9.357e-01  2.318e-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.039e+00  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.01
Ra Dec: 171.964 36.314
Photon Index (Free Index): 2.12 +/- 0.38
Photon Flux (Free Index): 8.23e-08 +/- 4.25e-08
Energy Flux (Free Index): 4.33e-05 +/- 2.76e-05

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/805149/cmap_HighResolution_300758401_301017601_4FGL_J1127.8+3618_daily_bin237.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.85e-08', energy_flux2='4.33e-05', photon_flux_error='3.99e-08', dlogl='2.05e-01', energy_flux='3.36e-05', photon_flux2='8.23e-08', job_status='DONE', time_completed='2021-09-03 21:56:18.820895', photon_index_error2='0.38', photon_index2='2.12', ts='17.59', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.76e-05', EG='1.02', time_epoch_completed='1630731378.82', return_code='0', job_id='805149', GAL2='0.94', EG2='1.04', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.25e-08', ts2='18.01', photon_index='2.37' WHERE bin_id='237' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:56:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 805149: <4FGL_J1127.8+3618_daily_bin237> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin237> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 21:41:34 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:42:06 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:42:06 2021
Terminated at Fri Sep  3 21:56:19 2021
Results reported at Fri Sep  3 21:56:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin237 171.964 36.314 300758401 301017601 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 :                                   829.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            885 sec.

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

