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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin713
RA = 171.964, Dec = 36.314
tmin = 424137601, tmax = 424396801
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='808262', job_status='RUN', time_executed='2021-09-03 21:56:16.385809', time_epoch_executed='1630731376.39' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808262/ft1_4FGL_J1127.8+3618_daily_bin713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808262/ft2_4FGL_J1127.8+3618_daily_bin713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808262/ft1_4FGL_J1127.8+3618_daily_bin713.fits outfile=/scratch/kocevski/808262/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin713.fits ra=171.964 dec=36.314 rad=12.0 tmin=424137601.0 tmax=424396801.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 5.26
user 4.91
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/808262/ft2_4FGL_J1127.8+3618_daily_bin713.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/808262/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin713.fits evtable="EVENTS" outfile="/scratch/kocevski/808262/ft1_filtered_4FGL_J1127.8+3618_daily_bin713.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/808262/ft1_filtered_4FGL_J1127.8+3618_daily_bin713.fits" evtable="EVENTS" scfile=/scratch/kocevski/808262/ft2_4FGL_J1127.8+3618_daily_bin713.fits sctable="SC_DATA" outfile=/scratch/kocevski/808262/ltcube_424137601_424396801_4FGL_J1127.8+3618_daily_bin713.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/808262/ft2_4FGL_J1127.8+3618_daily_bin713.fits
.....................!
real 16.40
user 15.86
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808262/ft1_filtered_4FGL_J1127.8+3618_daily_bin713.fits evtable="EVENTS" scfile=/scratch/kocevski/808262/ft2_4FGL_J1127.8+3618_daily_bin713.fits sctable="SC_DATA" expcube=/scratch/kocevski/808262/ltcube_424137601_424396801_4FGL_J1127.8+3618_daily_bin713.fits outfile=/scratch/kocevski/808262/expmap_424137601_424396801_4FGL_J1127.8+3618_daily_bin713.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/808262/ltcube_424137601_424396801_4FGL_J1127.8+3618_daily_bin713.fits
.....................!
real 196.03
user 189.05
sys 4.34

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/808262/ft1_filtered_4FGL_J1127.8+3618_daily_bin713.fits scfile=/scratch/kocevski/808262/ft2_4FGL_J1127.8+3618_daily_bin713.fits outfile=/scratch/kocevski/808262/cmap_424137601_424396801_4FGL_J1127.8+3618_daily_bin713.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.60
user 0.42
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808262/ft1_filtered_4FGL_J1127.8+3618_daily_bin713.fits scfile=/scratch/kocevski/808262/ft2_4FGL_J1127.8+3618_daily_bin713.fits outfile=/scratch/kocevski/808262/cmap_HighResolution_424137601_424396801_4FGL_J1127.8+3618_daily_bin713.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.62
user 0.43
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.444       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18059       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.549       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6208       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .13273       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7891       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.139       1.0000         .10000E-03   10000.    
    17 'norm      '    9.2555       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .55591       1.0000         .10000E-03   10000.    
    20 'Prefactor '    144.77       1.0000         .10000E-03   10000.    
    21 'norm      '    7.6950       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .56705E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    78.298       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.5966       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .46332       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1386       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=   2528.276     FROM MIGRAD    STATUS=CONVERGED   1402 CALLS     4543 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.645        .18142E-02** at limit **
   2  Prefactor     16.440        8.6578        .98769E-04    .21386E-04
   3  Prefactor     .16392        38.339        .20117E-02   -.47103E-04
   4  Prefactor     28.904        37.965        .74545E-04    .43068E-04
   5  Prefactor     26.543        26.302        .77748E-04    .73844E-05
   6  Prefactor     .10000E-03    44.514        .18142E-02** at limit **
   7  Prefactor     .10000E-03    6.6040        .12613E-02** at limit **
   8  norm          1.6207        .50361        .19141E-04    .34330E-03
   9  Prefactor     .10000E-03    1.6466        .62839E-03** at limit **
  10  Prefactor     .10000E-03    7.7210        .13635E-02** at limit **
  11  Prefactor     .10000E-03    8.5049        .14320E-02** at limit **
  12  norm          .10000E-03    13.500        .18004E-02** at limit **
  13  norm          .11637E-03    41.960        .67134E-01** at limit **
  14  Prefactor     6.7769        6.2474        .95696E-04   -.42934E-03
  15  Prefactor     .10001E-03    78.017        .18142E-02** at limit **
  16  Prefactor     29.138        29.164        .74220E-04   -.21445E-04
  17  norm          9.2562        6.3278        .45904E-03    .17474E-03
  18  Prefactor     .10000E-03    25.953        .18142E-02** at limit **
  19  Prefactor     .58350        52.298        .26818E-02    .43374E-03
  20  Prefactor     144.77        95.842        .33489E-04    .67896E-06
  21  norm          7.6943        2.9658        .48239E-04   -.50316E-04
  22  Prefactor     .10001E-03    510.78        .69174E-02** at limit **
  23  norm          .10000E-03    6.8086        .12815E-02** at limit **
  24  Prefactor     78.209        63.096        .45384E-04   -.17989E-03
  25  Prefactor     .10000E-03    50.527        .18142E-02** at limit **
  26  norm          8.5977        3.6490        .59579E-04   -.11831E-03
  27  Prefactor     .10000E-03    57.596        .18142E-02** at limit **
  28  Prefactor     .10000E-03    6.2570        .12284E-02** at limit **
  29  Normalizat    .46407        .33114        .33384E-03    .19717E-04
  30  Prefactor     1.1379        .37584        .26800E-03   -.12996E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.4398
  Prefactor  = 0.163922
  Prefactor  = 28.9043
  Prefactor  = 26.543
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.6207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000116368
  Prefactor  = 6.77692
  Prefactor  = 0.000100007
  Prefactor  = 29.138
  norm       = 9.25619
  Prefactor  = 0.000100001
  Prefactor  = 0.583499
  Prefactor  = 144.765
  norm       = 7.69426
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 78.2091
  Prefactor  = 0.0001
  norm       = 8.59772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.464074
  Prefactor  = 1.13791
 **********
 **   18 **HESSE 
 **********

 FCN=   2528.276     FROM HESSE     STATUS=OK           570 CALLS     5113 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.440        8.6566        .19754E-04   -1.4897    
   3  Prefactor     .16392        38.317        .80469E-04   -1.5627    
   4  Prefactor     28.904        37.919        .14909E-04   -1.4632    
   5  Prefactor     26.543        26.297        .31099E-05   -1.4677    
   6  Prefactor     .10000E-03    44.514        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6041        .25227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6207        .50355        .76564E-06   -1.5453    
   9  Prefactor     .10000E-03    1.6466        .12568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7212        .27271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.5050        .28640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    13.502        .36009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11637E-03    33.811        .76474E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7769        6.1325        .38279E-05   -1.5187    
  15  Prefactor     .10001E-03    78.017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.138        29.151        .29688E-05   -1.4628    
  17  norm          9.2562        6.3238        .18362E-04   -1.5099    
  18  Prefactor     .10000E-03    25.960        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .58350        49.648        .10727E-03   -1.5555    
  20  Prefactor     144.77        95.824        .66977E-05   -1.3296    
  21  norm          7.6943        2.9656        .19296E-05   -1.5153    
  22  Prefactor     .10001E-03    530.89        .27670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.8086        .25630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     78.209        62.670        .90767E-05   -1.3937    
  25  Prefactor     .10000E-03    50.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.5977        3.6445        .23832E-05   -1.5121    
  27  Prefactor     .10000E-03    57.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.2570        .24568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .46407        .33037        .13354E-04   -1.1411    
  30  Prefactor     1.1379        .37587        .53601E-04   -.88264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6747e-09
Minuit parameter uncertainties:
  1  6.99801e-05
  2  8.65723
  3  5.01407
  4  37.9511
  5  26.3089
  6  0.000154405
  7  3.06937e-06
  8  0.503552
  9  4.28869e-06
  10  2.90065e-05
  11  2.37176e-05
  12  0.000114478
  13  0.0470766
  14  6.13302
  15  0.00143174
  16  29.1649
  17  6.32429
  18  0.000319443
  19  10.773
  20  95.9272
  21  2.96562
  22  0.00330051
  23  1.46897e-06
  24  62.7229
  25  2.5355e-05
  26  3.64456
  27  0.000224342
  28  7.54236e-06
  29  0.331769
  30  0.376756
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  6.777e+00  6.133e+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.138e+00  3.768e-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:  4.641e-01  3.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.42
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 9.64e-08 +/- 8.72e-08
Energy Flux (Fixed Index): 3.29e-05 +/- 2.97e-05

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

Saving results to:
/scratch/kocevski/808262/likelihoodResults_424137601_424396801_4FGL_J1127.8+3618_daily_bin713.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) = 2528.03551337
delta logL = 0.240889687558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2528.03100128
delta logL = 0.245401774473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5904       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8914       1.0000          .0000       10.000    
     3 'Normalizat'    .43655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1661       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=   2528.031     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      299 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5912        6.1586        .64656E-04   -.48917E-03
   2  Index         2.8917        .96166        .39137E-02   -.88809E-04
   3  Normalizat    .43652        .30246        .34329E-03    .46745E-04
   4  Prefactor     1.1660        .36957        .26505E-03    .13180E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.59124
  Index      = 2.89173
  Normalizat = 0.436517
  Prefactor  = 1.16603
 **********
 **   18 **HESSE 
 **********

 FCN=   2528.031     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5912        5.3014        .25862E-05   -1.5329    
   2  Index         2.8917        .82910        .15655E-03   -.43527    
   3  Normalizat    .43652        .30241        .13732E-04   -1.1545    
   4  Prefactor     1.1660        .36912        .53009E-04   -.87383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69743e-10
Minuit parameter uncertainties:
  1  5.30208
  2  0.833789
  3  0.303547
  4  0.369937
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808262': 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) = 2528.03100067
delta logL = 0.245402385804

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  3.591e+00  5.302e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.892e+00  8.338e-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.166e+00  3.699e-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:  4.365e-01  3.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 171.964 36.314
Photon Index (Free Index): 2.89 +/- 0.83
Photon Flux (Free Index): 1.18e-07 +/- 8.54e-08
Energy Flux (Free Index): 2.49e-05 +/- 2.00e-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/808262/cmap_HighResolution_424137601_424396801_4FGL_J1127.8+3618_daily_bin713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-02', comment='SUCCESS', photon_flux='9.64e-08', energy_flux2='2.49e-05', photon_flux_error='8.72e-08', dlogl='2.45e-01', energy_flux='3.29e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-03 22:06:45.755095', photon_index_error2='0.83', photon_index2='2.89', ts='2.42', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='2.53e-07', energy_flux_error2='2.00e-05', EG='0.46', time_epoch_completed='1630732005.76', return_code='0', job_id='808262', GAL2='1.17', EG2='0.44', return_code2='0', energy_flux_error='2.97e-05', photon_flux_error2='8.54e-08', ts2='3.03', photon_index='2.37' WHERE bin_id='713' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:06:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 808262: <4FGL_J1127.8+3618_daily_bin713> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin713> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 21:51:27 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:53:18 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:53:18 2021
Terminated at Fri Sep  3 22:06:46 2021
Results reported at Fri Sep  3 22:06:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin713 171.964 36.314 424137601 424396801 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 :                                   622.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            919 sec.

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

