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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin995
RA = 171.964, Dec = 36.314
tmin = 497232001, tmax = 497491201
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='811048', job_status='RUN', time_executed='2021-09-03 22:03:32.673728', time_epoch_executed='1630731812.67' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='995'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811048

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811048/ft1_4FGL_J1127.8+3618_daily_bin995.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811048/ft2_4FGL_J1127.8+3618_daily_bin995.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811048/ft1_4FGL_J1127.8+3618_daily_bin995.fits outfile=/scratch/kocevski/811048/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin995.fits ra=171.964 dec=36.314 rad=12.0 tmin=497232001.0 tmax=497491201.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 6.85
user 6.53
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/811048/ft2_4FGL_J1127.8+3618_daily_bin995.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/811048/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin995.fits evtable="EVENTS" outfile="/scratch/kocevski/811048/ft1_filtered_4FGL_J1127.8+3618_daily_bin995.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.59
user 0.34
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811048/ft1_filtered_4FGL_J1127.8+3618_daily_bin995.fits evtable="EVENTS" scfile=/scratch/kocevski/811048/ft2_4FGL_J1127.8+3618_daily_bin995.fits sctable="SC_DATA" expcube=/scratch/kocevski/811048/ltcube_497232001_497491201_4FGL_J1127.8+3618_daily_bin995.fits outfile=/scratch/kocevski/811048/expmap_497232001_497491201_4FGL_J1127.8+3618_daily_bin995.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/811048/ltcube_497232001_497491201_4FGL_J1127.8+3618_daily_bin995.fits
.....................!
real 194.08
user 188.19
sys 5.44

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/811048/ft1_filtered_4FGL_J1127.8+3618_daily_bin995.fits scfile=/scratch/kocevski/811048/ft2_4FGL_J1127.8+3618_daily_bin995.fits outfile=/scratch/kocevski/811048/cmap_497232001_497491201_4FGL_J1127.8+3618_daily_bin995.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811048/ft1_filtered_4FGL_J1127.8+3618_daily_bin995.fits scfile=/scratch/kocevski/811048/ft2_4FGL_J1127.8+3618_daily_bin995.fits outfile=/scratch/kocevski/811048/cmap_HighResolution_497232001_497491201_4FGL_J1127.8+3618_daily_bin995.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.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8108       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.293       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .92524       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1514       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15100E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.013       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9050       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.973       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4384       1.0000         .10000E-03   10000.    
    17 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.605       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    62.152       1.0000         .10000E-03   10000.    
    21 'norm      '    .78523       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.847       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.5751       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11721E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.5754       1.0000         .10000E-03   10000.    
    27 'Prefactor '    43.462       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .76368       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0704       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .80051       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=   2580.121     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3922 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.535       -.84397E-07** at limit **
   2  Prefactor     .10000E-03    4.7330        .35134E-06** at limit **
   3  Prefactor     .10000E-03    3.3810       -.17580E-07** at limit **
   4  Prefactor     .10000E-03    36.738        .12556E-06** at limit **
   5  Prefactor     6.7958        52.645       -.16498E-06   -.13626E-04
   6  Prefactor     13.498        173.49        .51101E-06    .68502E-04
   7  Prefactor     .10000E-03    8.0710       -.17137E-06** at limit **
   8  norm          .92530        .46926        .83324E-08    .37817E-04
   9  Prefactor     5.1513        4.5013       -.92936E-07   -.10512E-03
  10  Prefactor     .10000E-03    63.760       -.66957E-06** at limit **
  11  Prefactor     20.016        21.170        .60796E-07    .10364E-04
  12  norm          .10000E-03    9.2657       -.11799E-06** at limit **
  13  norm          .10000E-03    7.8106       -.14271E-06** at limit **
  14  Prefactor     2.9054        3.0784       -.12547E-07    .29177E-04
  15  Prefactor     44.972        45.563        .15545E-06    .10255E-04
  16  Prefactor     2.4393        66.007        .26690E-04   -.33053E-04
  17  norm          .10000E-03    1.7339       -.30769E-06** at limit **
  18  Prefactor     23.604        24.309       -.26370E-05   -.89473E-04
  19  Prefactor     .10000E-03    4.6369       -.31497E-06** at limit **
  20  Prefactor     62.093        70.992        .42801E-05    .68220E-05
  21  norm          .78424        1.5823       -.18858E-05   -.11458E-02
  22  Prefactor     .10000E-03    23.120       -.15040E-06** at limit **
  23  norm          11.847        11.879        .61500E-07    .14033E-04
  24  Prefactor     9.5719        42.172        .28957E-06    .13211E-04
  25  Prefactor     .10000E-03    48.152        .70043E-07** at limit **
  26  norm          1.5754        1.3110       -.50298E-08    .15669E-04
  27  Prefactor     43.459        46.207        .39800E-06    .59272E-04
  28  Prefactor     .78959        10.108       -.22682E-05    .45692E-03
  29  Normalizat    1.0707        .26574       -.34787E-06    .12807E-03
  30  Prefactor     .80014        .29872        .18989E-06    .48248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.79584
  Prefactor  = 13.498
  Prefactor  = 0.0001
  norm       = 0.925305
  Prefactor  = 5.15127
  Prefactor  = 0.0001
  Prefactor  = 20.0157
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.90536
  Prefactor  = 44.9725
  Prefactor  = 2.43934
  norm       = 0.0001
  Prefactor  = 23.604
  Prefactor  = 0.0001
  Prefactor  = 62.0925
  norm       = 0.784244
  Prefactor  = 0.0001
  norm       = 11.847
  Prefactor  = 9.57185
  Prefactor  = 0.0001
  norm       = 1.57539
  Prefactor  = 43.4586
  Prefactor  = 0.789589
  Normalizat = 1.0707
  Prefactor  = 0.800141
 **********
 **   18 **HESSE 
 **********

 FCN=   2580.121     FROM HESSE     STATUS=OK           586 CALLS     4508 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7889        .10789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4085        .91201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.7958        52.867        .15374E-03   -1.5187    
   6  Prefactor     13.498        170.16        .10986E-03   -1.4973    
   7  Prefactor     .10000E-03    8.0771        .14094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .92530        .47074        .23504E-04   -1.5516    
   9  Prefactor     5.1513        4.5008        .97106E-04   -1.5254    
  10  Prefactor     .10000E-03    65.580        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.016        21.210        .44765E-03   -1.4813    
  12  norm          .10000E-03    9.2746        .15102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.8204        .13866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9054        3.0761        .87816E-04   -1.5367    
  15  Prefactor     44.972        45.664        .59785E-04   -1.4366    
  16  Prefactor     2.4393        62.735        .13101E-02   -1.5396    
  17  norm          .10000E-03    1.7542        .65271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.604        24.295        .82446E-04   -1.4736    
  19  Prefactor     .10000E-03    4.6517        .10679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     62.093        70.558        .25449E-03   -1.4130    
  21  norm          .78424        1.4926        .87007E-03   -1.5531    
  22  Prefactor     .10000E-03    23.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.847        11.881        .11639E-03   -1.5019    
  24  Prefactor     9.5719        42.344        .12951E-03   -1.5089    
  25  Prefactor     .10000E-03    48.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.5754        1.3010        .51462E-04   -1.5457    
  27  Prefactor     43.459        46.023        .60811E-04   -1.4389    
  28  Prefactor     .78959        32.963        .30160E-02   -1.5530    
  29  Normalizat    1.0707        .30846        .22717E-03   -.90698    
  30  Prefactor     .80014        .34634        .30386E-03   -.99723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71813e-09
Minuit parameter uncertainties:
  1  3.44686e-05
  2  3.49398e-06
  3  7.53991e-07
  4  7.9504e-05
  5  37.9551
  6  96.1904
  7  2.51387e-06
  8  0.470741
  9  4.50106
  10  8.87535e-06
  11  21.2184
  12  5.13819e-06
  13  8.81039e-06
  14  3.07624
  15  45.7
  16  24.7697
  17  3.33903e-06
  18  24.3051
  19  1.31763e-05
  20  70.6533
  21  1.4927
  22  1.54054e-05
  23  11.8834
  24  40.3124
  25  0.00024249
  26  1.30107
  27  46.0609
  28  10.2088
  29  0.308978
  30  0.347289
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  2.905e+00  3.076e+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:  8.001e-01  3.473e-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.071e+00  3.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.13e-08 +/- 4.37e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/811048/likelihoodResults_497232001_497491201_4FGL_J1127.8+3618_daily_bin995.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) = 2580.06132601
delta logL = 0.0594419030022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2580.0592314
delta logL = 0.0615365181006

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7283       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0870       1.0000          .0000       10.000    
     3 'Normalizat'    1.0767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79485       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=   2580.059     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      263 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7284        4.3002        .98090E-04   -.31623E-03
   2  Index         2.0866        .76924        .73088E-02   -.49258E-04
   3  Normalizat    1.0768        .28955        .22661E-03    .22074E-04
   4  Prefactor     .79483        .34014        .30474E-03    .19903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.72837
  Index      = 2.08657
  Normalizat = 1.0768
  Prefactor  = 0.794826
 **********
 **   18 **HESSE 
 **********

 FCN=   2580.059     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7284        4.2341        .39236E-05   -1.5322    
   2  Index         2.0866        .75758        .29235E-03   -.62203    
   3  Normalizat    1.0768        .28977        .90643E-05   -.90500    
   4  Prefactor     .79483        .34042        .12190E-04   -.99919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8652e-11
Minuit parameter uncertainties:
  1  4.23446
  2  0.762039
  3  0.290203
  4  0.341321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811048': 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) = 2580.05923119
delta logL = 0.0615367284208

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  3.728e+00  4.234e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.087e+00  7.620e-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:  7.948e-01  3.413e-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.077e+00  2.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 171.964 36.314
Photon Index (Free Index): 2.09 +/- 0.76
Photon Flux (Free Index): 3.55e-08 +/- 4.07e-08
Energy Flux (Free Index): 2.01e-05 +/- 3.11e-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/811048/cmap_HighResolution_497232001_497491201_4FGL_J1127.8+3618_daily_bin995.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='4.13e-08', energy_flux2='2.01e-05', photon_flux_error='4.37e-08', dlogl='6.15e-02', energy_flux='1.41e-05', photon_flux2='3.55e-08', job_status='DONE', time_completed='2021-09-03 22:13:45.176966', photon_index_error2='0.76', photon_index2='2.09', ts='1.79', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='3.11e-05', EG='1.07', time_epoch_completed='1630732425.18', return_code='0', job_id='811048', GAL2='0.79', EG2='1.08', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='4.07e-08', ts2='1.92', photon_index='2.37' WHERE bin_id='995' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:13:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 811048: <4FGL_J1127.8+3618_daily_bin995> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin995> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 22:01:04 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:01: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 22:01:21 2021
Terminated at Fri Sep  3 22:13:46 2021
Results reported at Fri Sep  3 22:13:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin995 171.964 36.314 497232001 497491201 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 :                                   604.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            762 sec.

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

