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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin1289
RA = 171.964, Dec = 36.314
tmin = 573436801, tmax = 573696001
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='811469', job_status='RUN', time_executed='2021-09-03 22:03:13.240064', time_epoch_executed='1630731793.24' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811469/ft1_4FGL_J1127.8+3618_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811469/ft2_4FGL_J1127.8+3618_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811469/ft1_4FGL_J1127.8+3618_daily_bin1289.fits outfile=/scratch/kocevski/811469/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin1289.fits ra=171.964 dec=36.314 rad=12.0 tmin=573436801.0 tmax=573696001.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.44
user 5.14
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811469/ft1_filtered_4FGL_J1127.8+3618_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/811469/ft2_4FGL_J1127.8+3618_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/811469/ltcube_573436801_573696001_4FGL_J1127.8+3618_daily_bin1289.fits outfile=/scratch/kocevski/811469/expmap_573436801_573696001_4FGL_J1127.8+3618_daily_bin1289.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/811469/ltcube_573436801_573696001_4FGL_J1127.8+3618_daily_bin1289.fits
.....................!
real 193.86
user 189.15
sys 4.00

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/811469/ft1_filtered_4FGL_J1127.8+3618_daily_bin1289.fits scfile=/scratch/kocevski/811469/ft2_4FGL_J1127.8+3618_daily_bin1289.fits outfile=/scratch/kocevski/811469/cmap_573436801_573696001_4FGL_J1127.8+3618_daily_bin1289.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811469/ft1_filtered_4FGL_J1127.8+3618_daily_bin1289.fits scfile=/scratch/kocevski/811469/ft2_4FGL_J1127.8+3618_daily_bin1289.fits outfile=/scratch/kocevski/811469/cmap_HighResolution_573436801_573696001_4FGL_J1127.8+3618_daily_bin1289.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10935E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28138       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    149.82       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8285       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4123       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5595       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .88804       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6733       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    76.318       1.0000         .10000E-03   10000.    
    21 'norm      '    .10474E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .65583       1.0000         .10000E-03   10000.    
    24 'Prefactor '    110.94       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.5180       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .99798       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2155       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=   5623.324     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     3994 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.555       -.13773E-06** at limit **
   2  Prefactor     .10000E-03    2.4733       -.63347E-07** at limit **
   3  Prefactor     .28985        3.7955        .14049E-06   -.27307E-04
   4  Prefactor     .10000E-03    106.13       -.13469E-05** at limit **
   5  Prefactor     .10000E-03    27.006       -.25860E-06** at limit **
   6  Prefactor     149.81        161.19        .14560E-05   -.72853E-06
   7  Prefactor     .10000E-03    5.7981       -.11687E-06** at limit **
   8  norm          1.8285        .41458        .15964E-07    .48405E-03
   9  Prefactor     .10000E-03    2.2235       -.24180E-06** at limit **
  10  Prefactor     .10000E-03    8.1570       -.13211E-06** at limit **
  11  Prefactor     .10000E-03    12.593       -.11192E-06** at limit **
  12  norm          1.3899        27.853        .11616E-06    .12072E-04
  13  norm          .10000E-03    18.188       -.44269E-06** at limit **
  14  Prefactor     2.5605        3.4563        .10017E-05    .42800E-03
  15  Prefactor     .10000E-03    26.578       -.10372E-06** at limit **
  16  Prefactor     .10000E-03    7.3236       -.70608E-07** at limit **
  17  norm          .88204        2.3124       -.55652E-06   -.29422E-03
  18  Prefactor     3.6726        8.4105        .22801E-05    .50639E-03
  19  Prefactor     .10000E-03    2.2376       -.88839E-07** at limit **
  20  Prefactor     76.434        54.725       -.29459E-06   -.10433E-03
  21  norm          .10000E-03    1.0644        .18088E-05** at limit **
  22  Prefactor     .10000E-03    9.8440       -.32649E-07** at limit **
  23  norm          .62677        9.5914       -.24397E-05    .86426E-04
  24  Prefactor     110.94        46.130        .10267E-06   -.18095E-04
  25  Prefactor     .10000E-03    19.228        .27906E-07** at limit **
  26  norm          1.5178        1.4905        .11342E-08    .31260E-04
  27  Prefactor     .10000E-03    10.143       -.71061E-07** at limit **
  28  Prefactor     .10000E-03    3.4552       -.60156E-07** at limit **
  29  Normalizat    .99788        .21554       -.14447E-05   -.19313E-03
  30  Prefactor     1.2156        .23580        .14139E-05   -.15652E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.289846
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 149.809
  Prefactor  = 0.0001
  norm       = 1.8285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38989
  norm       = 0.0001
  Prefactor  = 2.56054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.88204
  Prefactor  = 3.67259
  Prefactor  = 0.0001
  Prefactor  = 76.4341
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.626769
  Prefactor  = 110.942
  Prefactor  = 0.0001
  norm       = 1.51782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.997882
  Prefactor  = 1.21562
 **********
 **   18 **HESSE 
 **********

 FCN=   5623.324     FROM HESSE     STATUS=OK           584 CALLS     4578 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    79.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4806        .11516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .28985        10.171        .28164E-02   -1.5600    
   4  Prefactor     .10000E-03    107.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     149.81        162.70        .32928E-04   -1.3254    
   7  Prefactor     .10000E-03    5.8053        .17635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8285        .41495        .22128E-04   -1.5438    
   9  Prefactor     .10000E-03    2.2606        .10917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3899        27.822        .36447E-03   -1.5472    
  13  norm          .10000E-03    18.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5605        3.5205        .15006E-03   -1.5388    
  15  Prefactor     .10000E-03    26.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.3348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .88204        2.3080        .17811E-02   -1.5520    
  18  Prefactor     3.6726        8.8118        .10537E-02   -1.5325    
  19  Prefactor     .10000E-03    2.2432        .10953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     76.434        54.777        .22982E-03   -1.3957    
  21  norm          .10000E-03    1.2038        .11058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.8525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .62677        29.413        .41790E-02   -1.5550    
  24  Prefactor     110.94        46.229        .38190E-04   -1.3597    
  25  Prefactor     .10000E-03    19.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.5178        1.4727        .86430E-04   -1.5462    
  27  Prefactor     .10000E-03    10.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    3.4620        .13613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .99788        .25606        .27452E-03   -.93101    
  30  Prefactor     1.2156        .28056        .29103E-03   -.85852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4953e-08
Minuit parameter uncertainties:
  1  0.000861871
  2  3.73627e-06
  3  3.43407
  4  0.000994042
  5  8.42237e-05
  6  163.188
  7  9.7799e-06
  8  0.414947
  9  1.30375e-05
  10  1.41663e-05
  11  1.6e-05
  12  12.4433
  13  0.000132843
  14  3.52079
  15  5.31175e-06
  16  1.59122e-05
  17  2.30826
  18  8.8149
  19  8.13904e-06
  20  54.8133
  21  4.87594e-05
  22  3.21316e-05
  23  8.591
  24  46.2442
  25  5.07692e-05
  26  1.47269
  27  1.43026e-05
  28  4.18559e-06
  29  0.256375
  30  0.280905
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  2.561e+00  3.521e+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.216e+00  2.809e-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:  9.979e-01  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/811469/likelihoodResults_573436801_573696001_4FGL_J1127.8+3618_daily_bin1289.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) = 5622.36814414
delta logL = 0.95599150714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5622.35662616
delta logL = 0.96750948089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1823       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4619       1.0000          .0000       10.000    
     3 'Normalizat'    .93078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2607       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=   5622.357     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      239 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1843        12.809        .10504E-01    .66869E-03
   2  Index         3.4612        2.7706        .12832        .12120E-03
   3  Normalizat    .93055        .54791E-01    .45294E-01    .25613E-05
   4  Prefactor     1.2610        .63583E-01    .64685E-01   -.14451E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18427
  Index      = 3.46116
  Normalizat = 0.930547
  Prefactor  = 1.26098
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.357     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1843        2.4534        .54508E-04   -1.5490    
   2  Index         3.4612        1.1307        .47319E-02   -.31285    
   3  Normalizat    .93055        .24309        .28247E-03   -.95395    
   4  Prefactor     1.2610        .27714        .28611E-03   -.84475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43534e-08
Minuit parameter uncertainties:
  1  2.45357
  2  1.14163
  3  0.243377
  4  0.277464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811469': 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) = 5622.35662485
delta logL = 0.967510797944

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.184e+00  2.454e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  3.461e+00  1.142e+00  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.261e+00  2.775e-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:  9.305e-01  2.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.74
Ra Dec: 171.964 36.314
Photon Index (Free Index): 3.46 +/- 1.14
Photon Flux (Free Index): 1.06e-07 +/- 7.58e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.30e-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/811469/cmap_HighResolution_573436801_573696001_4FGL_J1127.8+3618_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', energy_flux2='1.79e-05', dlogl='9.68e-01', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-03 22:17:59.261621', photon_index_error2='1.14', photon_index2='3.46', ts='0.70', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.30e-05', EG='1.00', time_epoch_completed='1630732679.26', return_code='0', job_id='811469', GAL2='1.26', EG2='0.93', return_code2='0', photon_flux_error2='7.58e-08', ts2='2.74', photon_index='2.37' WHERE bin_id='1289' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:17:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 811469: <4FGL_J1127.8+3618_daily_bin1289> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin1289> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 22:01:31 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:02:54 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:02:54 2021
Terminated at Fri Sep  3 22:17:59 2021
Results reported at Fri Sep  3 22:17:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin1289 171.964 36.314 573436801 573696001 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 :                                   876.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            988 sec.

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

