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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin93
RA = 171.964, Dec = 36.314
tmin = 263433601, tmax = 263692801
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='804938', job_status='RUN', time_executed='2021-09-03 21:41:34.106818', time_epoch_executed='1630730494.11' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804938

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804938/ft1_4FGL_J1127.8+3618_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804938/ft2_4FGL_J1127.8+3618_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804938/ft1_4FGL_J1127.8+3618_daily_bin93.fits outfile=/scratch/kocevski/804938/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin93.fits ra=171.964 dec=36.314 rad=12.0 tmin=263433601.0 tmax=263692801.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.47
user 3.22
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804938/ft1_filtered_4FGL_J1127.8+3618_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/804938/ft2_4FGL_J1127.8+3618_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/804938/ltcube_263433601_263692801_4FGL_J1127.8+3618_daily_bin93.fits outfile=/scratch/kocevski/804938/expmap_263433601_263692801_4FGL_J1127.8+3618_daily_bin93.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/804938/ltcube_263433601_263692801_4FGL_J1127.8+3618_daily_bin93.fits
.....................!
real 191.20
user 185.91
sys 4.71

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/804938/ft1_filtered_4FGL_J1127.8+3618_daily_bin93.fits scfile=/scratch/kocevski/804938/ft2_4FGL_J1127.8+3618_daily_bin93.fits outfile=/scratch/kocevski/804938/cmap_263433601_263692801_4FGL_J1127.8+3618_daily_bin93.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=171.964 yref=36.314 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10393E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8386       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    180.54       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0134       1.0000         .10000E-03   10000.    
     8 'norm      '    .60006       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .45127E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4774       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    20.175       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3584       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9945       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .83817E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.8503       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.393       1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.0811       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.797       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0406       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0056       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=   4901.000     FROM MIGRAD    STATUS=CONVERGED   1391 CALLS     5128 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.253        .18142E-02** at limit **
   2  Prefactor     4.8358        5.2550        .16204E-03   -.19224E-04
   3  Prefactor     .10000E-03    3.6060        .12935E-02** at limit **
   4  Prefactor     .10000E-03    210.23        .18142E-02** at limit **
   5  Prefactor     .10000E-03    17.048        .18142E-02** at limit **
   6  Prefactor     180.61        126.60        .15021E-03    .16953E-04
   7  Prefactor     9.0225        9.2530        .13350E-03   -.23737E-03
   8  norm          .60007        .27609        .23429E-04   -.21397E-02
   9  Prefactor     .10003E-03    37.310        .17164E-02** at limit **
  10  Prefactor     1.4754        33.671        .35325E-03   -.17527E-03
  11  Prefactor     .10000E-03    16.378        .18142E-02** at limit **
  12  norm          .10000E-03    6.5224        .17431E-02** at limit **
  13  norm          20.176        15.021        .89171E-04   -.14228E-03
  14  Prefactor     1.3577        2.7064        .13736E-03   -.73073E-03
  15  Prefactor     6.0542        76.403        .16400E-03   -.26689E-04
  16  Prefactor     .10000E-03    8.4835        .18142E-02** at limit **
  17  norm          .10000E-03    3.7099        .18432E-02** at limit **
  18  Prefactor     .10000E-03    4.3003        .14164E-02** at limit **
  19  Prefactor     .10000E-03    2.0311        .97079E-03** at limit **
  20  Prefactor     .10005E-03    71.299        .12744    ** at limit **
  21  norm          2.8511        1.5653        .54436E-04    .16793E-02
  22  Prefactor     14.393        18.173        .10557E-03   -.49643E-04
  23  norm          .10000E-03    5.5180        .16039E-02** at limit **
  24  Prefactor     .10000E-03    76.656        .18142E-02** at limit **
  25  Prefactor     .10000E-03    34.122        .18142E-02** at limit **
  26  norm          3.0810        1.4332        .54646E-04   -.34452E-03
  27  Prefactor     12.792        29.273        .11197E-03   -.46196E-04
  28  Prefactor     .10000E-03    3.3485        .12483E-02** at limit **
  29  Normalizat    1.0407        .23631        .23667E-03    .78298E-05
  30  Prefactor     1.0056        .26464        .28588E-03   -.15478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.83576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 180.611
  Prefactor  = 9.02253
  norm       = 0.600073
  Prefactor  = 0.000100032
  Prefactor  = 1.47538
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 20.1761
  Prefactor  = 1.3577
  Prefactor  = 6.05425
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  norm       = 2.85108
  Prefactor  = 14.3926
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.08098
  Prefactor  = 12.7922
  Prefactor  = 0.0001
  Normalizat = 1.04069
  Prefactor  = 1.00558
 **********
 **   18 **HESSE 
 **********

 FCN=   4901.000     FROM HESSE     STATUS=OK           566 CALLS     5694 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8358        5.2548        .64814E-05   -1.5268    
   3  Prefactor     .10000E-03    3.6064        .25870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    210.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     180.61        126.61        .60085E-05   -1.3012    
   7  Prefactor     9.0225        9.2462        .26700E-04   -1.5107    
   8  norm          .60007        .27597        .46857E-05   -1.5553    
   9  Prefactor     .10003E-03    38.318        .68657E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4754        33.619        .14130E-04   -1.5465    
  11  Prefactor     .10000E-03    16.380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.5232        .34863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.176        15.021        .35669E-05   -1.4809    
  14  Prefactor     1.3577        2.7048        .54944E-05   -1.5475    
  15  Prefactor     6.0542        76.308        .65600E-05   -1.5216    
  16  Prefactor     .10000E-03    8.4849        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.7180        .36864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3005        .28327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0313        .19416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10005E-03    69.452        .12951       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.8511        1.5650        .21774E-05   -1.5370    
  22  Prefactor     14.393        18.172        .42229E-05   -1.4949    
  23  norm          .10000E-03    5.5185        .32078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    76.712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    34.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.0810        1.4332        .21858E-05   -1.5357    
  27  Prefactor     12.792        29.280        .44789E-05   -1.4992    
  28  Prefactor     .10000E-03    3.3488        .24966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0407        .23650        .94669E-05   -.91679    
  30  Prefactor     1.0056        .26494        .11435E-04   -.92544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23339e-09
Minuit parameter uncertainties:
  1  4.93395e-05
  2  5.25525
  3  2.57326e-05
  4  0.000174289
  5  6.19137e-05
  6  126.799
  7  9.24764
  8  0.275968
  9  0.002199
  10  14.0941
  11  1.68424e-05
  12  1.78932e-05
  13  15.0241
  14  2.70504
  15  43.0555
  16  4.00709e-05
  17  9.73667e-05
  18  1.38175e-05
  19  1.25425e-05
  20  0.00364691
  21  1.56499
  22  18.1791
  23  9.13561e-06
  24  0.000366562
  25  2.74622e-05
  26  1.43322
  27  29.3125
  28  1.127e-05
  29  0.23674
  30  0.265284
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.358e+00  2.705e+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:  1.006e+00  2.653e-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.041e+00  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804938/likelihoodResults_263433601_263692801_4FGL_J1127.8+3618_daily_bin93.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): 0
logL (Free Index) = 4900.68011941
delta logL = 0.319527557149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4900.63896744
delta logL = 0.360679526822

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1585       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6466       1.0000          .0000       10.000    
     3 'Normalizat'    1.0549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99032       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=   4900.639     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      236 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1585        10.490        .70098E-02    .15961E-03
   2  Index         1.6466        1.7145        .27535       -.44407E-04
   3  Normalizat    1.0549        .19923        .40237E-01   -.80062E-04
   4  Prefactor     .99034        .24023        .46146E-01   -.21687E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15846
  Index      = 1.64656
  Normalizat = 1.05493
  Prefactor  = 0.990335
 **********
 **   18 **HESSE 
 **********

 FCN=   4900.639     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1585        2.9640        .12644E-03   -1.5414    
   2  Index         1.6466        .71695        .93824E-02   -.73514    
   3  Normalizat    1.0549        .21984        .23519E-03   -.91212    
   4  Prefactor     .99034        .26267        .28736E-03   -.93052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82145e-11
Minuit parameter uncertainties:
  1  2.9642
  2  0.721493
  3  0.220032
  4  0.263013
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804938': 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) = 4900.63896744
delta logL = 0.360679527692

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  2.158e+00  2.964e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.647e+00  7.215e-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.903e-01  2.630e-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.055e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.13
Ra Dec: 171.964 36.314
Photon Index (Free Index): 1.65 +/- 0.72
Photon Flux (Free Index): 1.28e-08 +/- 2.14e-08
Energy Flux (Free Index): 2.49e-05 +/- 4.46e-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/804938/cmap_HighResolution_263433601_263692801_4FGL_J1127.8+3618_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-03', comment='SUCCESS', energy_flux2='2.49e-05', dlogl='3.61e-01', photon_flux2='1.28e-08', job_status='DONE', time_completed='2021-09-03 21:56:33.515953', photon_index_error2='0.72', photon_index2='1.65', ts='0.40', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='4.46e-05', EG='1.04', time_epoch_completed='1630731393.52', return_code='0', job_id='804938', GAL2='0.99', EG2='1.05', return_code2='0', photon_flux_error2='2.14e-08', ts2='1.13', photon_index='2.37' WHERE bin_id='93' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:56:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 804938: <4FGL_J1127.8+3618_daily_bin93> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin93 171.964 36.314 263433601 263692801 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 :                                   895.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

