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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin127
RA = 171.964, Dec = 36.314
tmin = 272246401, tmax = 272505601
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='804986', job_status='RUN', time_executed='2021-09-03 21:43:11.919339', time_epoch_executed='1630730591.92' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804986/ft1_4FGL_J1127.8+3618_daily_bin127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804986/ft2_4FGL_J1127.8+3618_daily_bin127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804986/ft1_4FGL_J1127.8+3618_daily_bin127.fits outfile=/scratch/kocevski/804986/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin127.fits ra=171.964 dec=36.314 rad=12.0 tmin=272246401.0 tmax=272505601.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 2.50
user 2.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804986/ft1_filtered_4FGL_J1127.8+3618_daily_bin127.fits" evtable="EVENTS" scfile=/scratch/kocevski/804986/ft2_4FGL_J1127.8+3618_daily_bin127.fits sctable="SC_DATA" outfile=/scratch/kocevski/804986/ltcube_272246401_272505601_4FGL_J1127.8+3618_daily_bin127.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/804986/ft2_4FGL_J1127.8+3618_daily_bin127.fits
.....................!
real 16.87
user 16.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804986/ft1_filtered_4FGL_J1127.8+3618_daily_bin127.fits evtable="EVENTS" scfile=/scratch/kocevski/804986/ft2_4FGL_J1127.8+3618_daily_bin127.fits sctable="SC_DATA" expcube=/scratch/kocevski/804986/ltcube_272246401_272505601_4FGL_J1127.8+3618_daily_bin127.fits outfile=/scratch/kocevski/804986/expmap_272246401_272505601_4FGL_J1127.8+3618_daily_bin127.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/804986/ltcube_272246401_272505601_4FGL_J1127.8+3618_daily_bin127.fits
.....................!
real 192.30
user 187.29
sys 4.59

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/804986/ft1_filtered_4FGL_J1127.8+3618_daily_bin127.fits scfile=/scratch/kocevski/804986/ft2_4FGL_J1127.8+3618_daily_bin127.fits outfile=/scratch/kocevski/804986/cmap_272246401_272505601_4FGL_J1127.8+3618_daily_bin127.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.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.070       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .54456       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1158       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0059       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11801E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.248       1.0000         .10000E-03   10000.    
    12 'norm      '    39.681       1.0000         .10000E-03   10000.    
    13 'norm      '    18.310       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8709       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.2848       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    37.811       1.0000         .10000E-03   10000.    
    26 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.7962       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .71654       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3682       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=   4940.538     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3869 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.070        19.515        .71109E-08   -.88721E-05
   2  Prefactor     .54448        5.7615        .19572E-05   -.35923E-03
   3  Prefactor     .10000E-03    2.1700        .11325E-07** at limit **
   4  Prefactor     .10000E-03    23.570        .27826E-05** at limit **
   5  Prefactor     .10000E-03    16.744       -.12982E-05** at limit **
   6  Prefactor     .10001E-03    33.475       -.42166E-05** at limit **
   7  Prefactor     .10000E-03    5.8826        .10870E-05** at limit **
   8  norm          1.1158        .35497       -.63843E-08   -.31356E-03
   9  Prefactor     1.0056        3.3324        .91033E-06   -.27521E-03
  10  Prefactor     .10000E-03    20.542        .92755E-06** at limit **
  11  Prefactor     20.251        19.516        .49884E-06    .52442E-04
  12  norm          39.684        20.064        .47728E-06    .63297E-04
  13  norm          18.310        12.506        .17221E-06   -.85033E-04
  14  Prefactor     .10000E-03    1.7504        .48567E-06** at limit **
  15  Prefactor     .10000E-03    29.081        .22305E-05** at limit **
  16  Prefactor     .10000E-03    7.0047       -.78687E-06** at limit **
  17  norm          2.8707        2.8290        .10785E-06   -.33928E-03
  18  Prefactor     .10000E-03    6.9875       -.77024E-06** at limit **
  19  Prefactor     .10000E-03    4.4476       -.63985E-06** at limit **
  20  Prefactor     .10000E-03    14.903       -.11113E-05** at limit **
  21  norm          3.2848        1.2863        .29297E-07   -.10437E-03
  22  Prefactor     .10000E-03    20.077        .50707E-06** at limit **
  23  norm          .10000E-03    3.1302       -.16997E-08** at limit **
  24  Prefactor     .10000E-03    10.137        .19812E-05** at limit **
  25  Prefactor     37.809        42.703       -.50255E-06   -.54129E-04
  26  norm          .10000E-03    .77477        .77380E-07** at limit **
  27  Prefactor     .10000E-03    15.746       -.14108E-05** at limit **
  28  Prefactor     6.7950        10.037        .24415E-05   -.56424E-03
  29  Normalizat    .71649        .19061       -.12170E-05   -.13518E-03
  30  Prefactor     1.3684        .22951       -.29895E-06   -.14094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.07
  Prefactor  = 0.544481
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 1.11576
  Prefactor  = 1.0056
  Prefactor  = 0.0001
  Prefactor  = 20.251
  norm       = 39.6838
  norm       = 18.3098
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.87072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.28476
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 37.8087
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.79502
  Normalizat = 0.716494
  Prefactor  = 1.36838
 **********
 **   18 **HESSE 
 **********

 FCN=   4940.538     FROM HESSE     STATUS=OK           582 CALLS     4451 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.070        19.511        .89404E-04   -1.4812    
   2  Prefactor     .54448        6.2999        .33513E-03   -1.5560    
   3  Prefactor     .10000E-03    2.1865        .10108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    34.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.9808        .16761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1158        .35641        .22064E-04   -1.5497    
   9  Prefactor     1.0056        3.3805        .21785E-03   -1.5507    
  10  Prefactor     .10000E-03    20.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.251        19.586        .89010E-04   -1.4808    
  12  norm          39.684        20.032        .63631E-04   -1.4447    
  13  norm          18.310        12.506        .46801E-03   -1.4852    
  14  Prefactor     .10000E-03    4.3080        .17515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.0577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8707        2.7855        .11045E-03   -1.5369    
  18  Prefactor     .10000E-03    7.0540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.5499        .14503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2848        1.2858        .47328E-04   -1.5345    
  22  Prefactor     .10000E-03    20.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.1304        .12145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     37.809        42.788        .65180E-04   -1.4477    
  26  norm          .10000E-03    1.3711        .11953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    15.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.7950        10.677        .76954E-03   -1.5187    
  29  Normalizat    .71649        .22542        .27553E-03   -1.0325    
  30  Prefactor     1.3684        .27482        .25751E-03   -.81296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03449e-09
Minuit parameter uncertainties:
  1  19.5175
  2  3.70429
  3  7.64512e-07
  4  0.000522123
  5  0.000205221
  6  0.000946096
  7  0.000100376
  8  0.356408
  9  3.38111
  10  9.53106e-05
  11  19.5923
  12  20.0357
  13  12.5081
  14  0.000145095
  15  0.000436748
  16  7.89184e-05
  17  2.78562
  18  7.51476e-05
  19  5.27718e-05
  20  0.000162841
  21  1.28583
  22  9.06628e-05
  23  3.40527e-07
  24  0.000245139
  25  42.8229
  26  4.66578e-06
  27  0.000212451
  28  10.68
  29  0.225713
  30  0.275114
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.451e-04  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.368e+00  2.751e-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:  7.165e-01  2.257e-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: 7.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804986/likelihoodResults_272246401_272505601_4FGL_J1127.8+3618_daily_bin127.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) = 4940.53881023
delta logL = -0.00110836828753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4940.53770175
delta logL = 1.04393620859e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4260       1.0000          .0000       10.000    
     3 'Normalizat'    .71628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3687       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=   4940.538     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      239 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.3867        .40130E-01** at limit **
   2  Index         2.4866        6.2374        .50000       -.11447E-03
   3  Normalizat    .71649        .51136E-02    .62284E-01    .63229E-04
   4  Prefactor     1.3684        .64140E-02    .58235E-01    .73317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.48662
  Normalizat = 0.716493
  Prefactor  = 1.36838
 **********
 **   18 **HESSE 
 **********

 FCN=   4940.538     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1239.1        .14533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4866        5.6219        .50000       -.52669    
   3  Normalizat    .71649        .13075        .27553E-03   -1.0325    
   4  Prefactor     1.3684        .16258        .25751E-03   -.81296    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.36827e-06
Minuit parameter uncertainties:
  1  0.0071597
  2  64.5094
  3  0.130811
  4  0.162645
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804986': 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) = 4940.53769884
delta logL = 3.01556792692e-06

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  7.160e-03  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.487e+00  6.451e+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.368e+00  1.626e-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:  7.165e-01  1.308e-01  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/804986/cmap_HighResolution_272246401_272505601_4FGL_J1127.8+3618_daily_bin127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.61e-08', time_completed='2021-09-03 21:56:27.622360', job_id='804986', GAL2='1.37', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630731387.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='3.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='127' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:56:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 804986: <4FGL_J1127.8+3618_daily_bin127> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin127 171.964 36.314 272246401 272505601 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 :                                   793.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            905 sec.

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

