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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin978
RA = 171.964, Dec = 36.314
tmin = 492825601, tmax = 493084801
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='811023', job_status='RUN', time_executed='2021-09-03 22:01:56.007602', time_epoch_executed='1630731716.01' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811023

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811023/ft1_4FGL_J1127.8+3618_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811023/ft2_4FGL_J1127.8+3618_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811023/ft1_4FGL_J1127.8+3618_daily_bin978.fits outfile=/scratch/kocevski/811023/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin978.fits ra=171.964 dec=36.314 rad=12.0 tmin=492825601.0 tmax=493084801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.82
user 3.57
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811023/ft1_filtered_4FGL_J1127.8+3618_daily_bin978.fits" evtable="EVENTS" scfile=/scratch/kocevski/811023/ft2_4FGL_J1127.8+3618_daily_bin978.fits sctable="SC_DATA" outfile=/scratch/kocevski/811023/ltcube_492825601_493084801_4FGL_J1127.8+3618_daily_bin978.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/811023/ft2_4FGL_J1127.8+3618_daily_bin978.fits
.....................!
real 16.96
user 16.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811023/ft1_filtered_4FGL_J1127.8+3618_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/811023/ft2_4FGL_J1127.8+3618_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/811023/ltcube_492825601_493084801_4FGL_J1127.8+3618_daily_bin978.fits outfile=/scratch/kocevski/811023/expmap_492825601_493084801_4FGL_J1127.8+3618_daily_bin978.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/811023/ltcube_492825601_493084801_4FGL_J1127.8+3618_daily_bin978.fits
.....................!
real 193.02
user 187.97
sys 4.62

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/811023/ft1_filtered_4FGL_J1127.8+3618_daily_bin978.fits scfile=/scratch/kocevski/811023/ft2_4FGL_J1127.8+3618_daily_bin978.fits outfile=/scratch/kocevski/811023/cmap_492825601_493084801_4FGL_J1127.8+3618_daily_bin978.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811023/ft1_filtered_4FGL_J1127.8+3618_daily_bin978.fits scfile=/scratch/kocevski/811023/ft2_4FGL_J1127.8+3618_daily_bin978.fits outfile=/scratch/kocevski/811023/cmap_HighResolution_492825601_493084801_4FGL_J1127.8+3618_daily_bin978.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.650       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3369       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3617       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.708       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8465       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.051       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1558       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.001       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .18423E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0287       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3739       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7546       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37612E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .39033       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    19.246       1.0000         .10000E-03   10000.    
    24 'Prefactor '    62.845       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.5319       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .23674E-02   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3193       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .56580       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=   5888.704     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3970 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.649        44.245       -.11704E-05    .98178E-04
   2  Prefactor     4.3360        4.4406        .99489E-07    .96018E-04
   3  Prefactor     5.3586        7.4437        .65680E-06    .56195E-03
   4  Prefactor     24.703        29.989       -.46425E-09   -.10857E-04
   5  Prefactor     6.8306        26.633        .27142E-07   -.56530E-04
   6  Prefactor     .10000E-03    93.012       -.67278E-06** at limit **
   7  Prefactor     13.050        9.4711        .49856E-07   -.68468E-05
   8  norm          1.1558        .30764        .62064E-09   -.11114E-03
   9  Prefactor     .10000E-03    .75265        .43100E-08** at limit **
  10  Prefactor     21.001        13.896        .28988E-07   -.16517E-04
  11  Prefactor     .10000E-03    7.2516       -.17612E-09** at limit **
  12  norm          .10000E-03    3.7967       -.19195E-08** at limit **
  13  norm          .10002E-03    7.1406       -.10173E-05** at limit **
  14  Prefactor     1.0284        1.8492        .23070E-06    .24876E-03
  15  Prefactor     .10000E-03    28.705       -.12477E-05** at limit **
  16  Prefactor     7.3758        9.1914        .62878E-07   -.40837E-04
  17  norm          2.7547        2.2821       -.13905E-06   -.11999E-03
  18  Prefactor     .10000E-03    7.3773        .63432E-06** at limit **
  19  Prefactor     .10000E-03    .92070       -.16359E-07** at limit **
  20  Prefactor     .10000E-03    19.994        .43693E-06** at limit **
  21  norm          .39036        .68142        .10910E-05    .92178E-03
  22  Prefactor     .10000E-03    5.2479        .36429E-08** at limit **
  23  norm          19.245        12.168       -.14378E-06   -.12775E-04
  24  Prefactor     62.839        28.815       -.12270E-06   -.81806E-04
  25  Prefactor     .10000E-03    36.228        .12448E-05** at limit **
  26  norm          2.5316        1.2762        .28672E-07    .57863E-04
  27  Prefactor     .10000E-03    17.369       -.26463E-06** at limit **
  28  Prefactor     .10014E-03    8.3120       -.21602E-05** at limit **
  29  Normalizat    1.3195        .18083       -.36919E-06    .18706E-03
  30  Prefactor     .56578        .20623       -.43714E-06    .85641E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6487
  Prefactor  = 4.33604
  Prefactor  = 5.35861
  Prefactor  = 24.7034
  Prefactor  = 6.83064
  Prefactor  = 0.000100001
  Prefactor  = 13.05
  norm       = 1.15585
  Prefactor  = 0.0001
  Prefactor  = 21.0011
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100023
  Prefactor  = 1.02841
  Prefactor  = 0.000100003
  Prefactor  = 7.37575
  norm       = 2.75466
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.390358
  Prefactor  = 0.0001
  norm       = 19.2453
  Prefactor  = 62.8392
  Prefactor  = 0.000100004
  norm       = 2.53162
  Prefactor  = 0.0001
  Prefactor  = 0.000100137
  Normalizat = 1.31945
  Prefactor  = 0.565776
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.704     FROM HESSE     STATUS=OK           594 CALLS     4564 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.649        45.050        .11262E-03   -1.4997    
   2  Prefactor     4.3360        4.4374        .15649E-03   -1.5291    
   3  Prefactor     5.3586        7.5831        .16898E-03   -1.5245    
   4  Prefactor     24.703        29.965        .80588E-04   -1.4714    
   5  Prefactor     6.8306        26.617        .15334E-03   -1.5185    
   6  Prefactor     .10000E-03    93.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.050        9.4656        .11088E-03   -1.4985    
   8  norm          1.1558        .30834        .20876E-04   -1.5493    
   9  Prefactor     .10000E-03    .75680        .64979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.001        13.905        .87402E-04   -1.4791    
  11  Prefactor     .10000E-03    7.2673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.8036        .14601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10002E-03    29.052        .38471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0284        1.6164        .12924E-02   -1.5505    
  15  Prefactor     .10000E-03    28.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3758        9.0725        .14770E-03   -1.5165    
  17  norm          2.7547        2.2406        .97266E-04   -1.5376    
  18  Prefactor     .10000E-03    25.555        .39476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .92165        .71901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .39036        .69039        .21629E-03   -1.5583    
  22  Prefactor     .10000E-03    5.2526        .17169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          19.245        12.165        .91297E-04   -1.4830    
  24  Prefactor     62.839        28.877        .50618E-04   -1.4121    
  25  Prefactor     .10000E-03    36.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.5316        1.2752        .59067E-04   -1.5390    
  27  Prefactor     .10000E-03    17.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10014E-03    32.092        .37812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3195        .20899        .21065E-03   -.82988    
  30  Prefactor     .56578        .23665        .36034E-03   -1.0905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61505e-09
Minuit parameter uncertainties:
  1  45.1714
  2  4.43772
  3  7.58447
  4  29.9834
  5  26.6633
  6  0.000703825
  7  9.46669
  8  0.30834
  9  5.73473e-07
  10  13.9068
  11  6.88259e-07
  12  6.71805e-07
  13  0.00163689
  14  1.61642
  15  0.00063391
  16  9.0742
  17  2.24068
  18  0.00038903
  19  2.51888e-07
  20  0.000220409
  21  0.690404
  22  7.38663e-07
  23  12.1669
  24  28.8836
  25  0.000795854
  26  1.27519
  27  6.898e-05
  28  0.00418879
  29  0.209125
  30  0.237071
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.028e+00  1.616e+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:  5.658e-01  2.371e-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.319e+00  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.58
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 7.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/811023/likelihoodResults_492825601_493084801_4FGL_J1127.8+3618_daily_bin978.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) = 5888.7022722
delta logL = 0.00173866245677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5888.70186833
delta logL = 0.00214252790738

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0765       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3014       1.0000          .0000       10.000    
     3 'Normalizat'    1.3205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56498       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=   5888.702     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      254 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0764        1.8877        .13342E-02   -.50330E-03
   2  Index         2.3014        1.1068        .12431E-01   -.39591E-04
   3  Normalizat    1.3205        .20210        .21058E-03   -.46655E-04
   4  Prefactor     .56498        .23561        .36058E-03   -.33263E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.07639
  Index      = 2.30137
  Normalizat = 1.32047
  Prefactor  = 0.56498
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.702     FROM HESSE     STATUS=OK            27 CALLS      281 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0764        1.7815        .53370E-04   -1.5500    
   2  Index         2.3014        1.0467        .49724E-03   -.57011    
   3  Normalizat    1.3205        .20214        .42117E-04   -.82957    
   4  Prefactor     .56498        .23567        .14423E-04   -1.0908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56002e-10
Minuit parameter uncertainties:
  1  1.78159
  2  1.05775
  3  0.20226
  4  0.236077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811023': 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) = 5888.70186833
delta logL = 0.00214252923342

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.076e+00  1.782e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.301e+00  1.058e+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:  5.650e-01  2.361e-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.320e+00  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
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/811023/cmap_HighResolution_492825601_493084801_4FGL_J1127.8+3618_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.43e-08', time_completed='2021-09-03 22:17:30.978068', job_id='811023', GAL2='0.56', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630732650.98', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='2.14e-03', ts2='0.59', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='978' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:17:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 811023: <4FGL_J1127.8+3618_daily_bin978> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin978 171.964 36.314 492825601 493084801 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 :                                   931.05 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             320.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            989 sec.

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

