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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin172
RA = 171.964, Dec = 36.314
tmin = 283910401, tmax = 284169601
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='805052', job_status='RUN', time_executed='2021-09-03 21:43:38.224719', time_epoch_executed='1630730618.22' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805052

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805052/ft1_4FGL_J1127.8+3618_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805052/ft2_4FGL_J1127.8+3618_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805052/ft1_4FGL_J1127.8+3618_daily_bin172.fits outfile=/scratch/kocevski/805052/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin172.fits ra=171.964 dec=36.314 rad=12.0 tmin=283910401.0 tmax=284169601.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.61
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805052/ft2_4FGL_J1127.8+3618_daily_bin172.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/805052/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin172.fits evtable="EVENTS" outfile="/scratch/kocevski/805052/ft1_filtered_4FGL_J1127.8+3618_daily_bin172.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 1.33
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805052/ft1_filtered_4FGL_J1127.8+3618_daily_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/805052/ft2_4FGL_J1127.8+3618_daily_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/805052/ltcube_283910401_284169601_4FGL_J1127.8+3618_daily_bin172.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/805052/ft2_4FGL_J1127.8+3618_daily_bin172.fits
.....................!
real 16.05
user 15.15
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805052/ft1_filtered_4FGL_J1127.8+3618_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/805052/ft2_4FGL_J1127.8+3618_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/805052/ltcube_283910401_284169601_4FGL_J1127.8+3618_daily_bin172.fits outfile=/scratch/kocevski/805052/expmap_283910401_284169601_4FGL_J1127.8+3618_daily_bin172.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/805052/ltcube_283910401_284169601_4FGL_J1127.8+3618_daily_bin172.fits
.....................!
real 192.36
user 186.71
sys 4.73

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/805052/ft1_filtered_4FGL_J1127.8+3618_daily_bin172.fits scfile=/scratch/kocevski/805052/ft2_4FGL_J1127.8+3618_daily_bin172.fits outfile=/scratch/kocevski/805052/cmap_283910401_284169601_4FGL_J1127.8+3618_daily_bin172.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805052/ft1_filtered_4FGL_J1127.8+3618_daily_bin172.fits scfile=/scratch/kocevski/805052/ft2_4FGL_J1127.8+3618_daily_bin172.fits outfile=/scratch/kocevski/805052/cmap_HighResolution_283910401_284169601_4FGL_J1127.8+3618_daily_bin172.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.701       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7467       1.0000         .10000E-03   10000.    
     6 'Prefactor '    134.94       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0220       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.475       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.559       1.0000         .10000E-03   10000.    
    12 'norm      '    46.010       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3211       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.034       1.0000         .10000E-03   10000.    
    15 'Prefactor '    46.948       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.805       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1913       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7968       1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.454       1.0000         .10000E-03   10000.    
    21 'norm      '    1.3343       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    13.420       1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.095       1.0000         .10000E-03   10000.    
    25 'Prefactor '    37.775       1.0000         .10000E-03   10000.    
    26 'norm      '    4.3907       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.952       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .48780       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2838       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=   6497.991     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3983 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.698        25.511       -.16688E-05   -.22521E-04
   2  Prefactor     .10000E-03    2.2938        .33094E-08** at limit **
   3  Prefactor     .10000E-03    3.0045        .63270E-07** at limit **
   4  Prefactor     16.500        30.239        .27930E-06    .27301E-05
   5  Prefactor     1.7410        99.987       -.17401E-04   -.26089E-04
   6  Prefactor     134.93        116.35       -.60400E-05   -.28511E-04
   7  Prefactor     .10000E-03    5.1583        .31256E-07** at limit **
   8  norm          3.0220        .51883        .94558E-08    .21028E-03
   9  Prefactor     .10000E-03    1.1716       -.10190E-07** at limit **
  10  Prefactor     10.475        26.054       -.40399E-06    .11641E-04
  11  Prefactor     13.559        13.202       -.53646E-07    .63677E-04
  12  norm          46.010        21.104        .16952E-06    .41262E-04
  13  norm          5.3206        10.494       -.34343E-06   -.16947E-04
  14  Prefactor     12.034        4.8578       -.84479E-06    .99541E-05
  15  Prefactor     46.958        66.528        .70576E-05    .36428E-04
  16  Prefactor     14.805        21.426        .15607E-05    .45429E-04
  17  norm          3.1909        2.1053        .53565E-06   -.24023E-02
  18  Prefactor     .10000E-03    27.747       -.11669E-06** at limit **
  19  Prefactor     2.7966        4.7688       -.37203E-06   -.12422E-03
  20  Prefactor     56.455        48.635       -.13310E-06    .12147E-04
  21  norm          1.3343        1.1044       -.29396E-07   -.17209E-03
  22  Prefactor     .10000E-03    15.442       -.48001E-07** at limit **
  23  norm          13.419        9.8296        .71586E-07    .24795E-05
  24  Prefactor     34.095        29.539        .17586E-06    .18601E-04
  25  Prefactor     37.773        43.302       -.19708E-05   -.19042E-04
  26  norm          4.3907        1.6938       -.67312E-07   -.13120E-04
  27  Prefactor     14.953        30.744        .13424E-05    .17216E-04
  28  Prefactor     .10000E-03    10.135       -.68405E-08** at limit **
  29  Normalizat    .48777        .19780        .82687E-06    .64568E-04
  30  Prefactor     1.2839        .21290        .45332E-06    .59212E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4995
  Prefactor  = 1.741
  Prefactor  = 134.927
  Prefactor  = 0.0001
  norm       = 3.02201
  Prefactor  = 0.0001
  Prefactor  = 10.4746
  Prefactor  = 13.5588
  norm       = 46.0103
  norm       = 5.32058
  Prefactor  = 12.0341
  Prefactor  = 46.9579
  Prefactor  = 14.8052
  norm       = 3.19093
  Prefactor  = 0.000100001
  Prefactor  = 2.79661
  Prefactor  = 56.4555
  norm       = 1.33426
  Prefactor  = 0.0001
  norm       = 13.4195
  Prefactor  = 34.0955
  Prefactor  = 37.7732
  norm       = 4.39069
  Prefactor  = 14.9528
  Prefactor  = 0.0001
  Normalizat = 0.487769
  Prefactor  = 1.28385
 **********
 **   18 **HESSE 
 **********

 FCN=   6497.991     FROM HESSE     STATUS=OK           594 CALLS     4577 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.698        25.422        .98006E-04   -1.4890    
   2  Prefactor     .10000E-03    2.3020        .11919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0236        .13587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.500        30.213        .98602E-04   -1.4895    
   5  Prefactor     1.7410        101.78        .31732E-03   -1.5444    
   6  Prefactor     134.93        116.81        .34669E-04   -1.3380    
   7  Prefactor     .10000E-03    5.1711        .17878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0220        .52312        .21578E-04   -1.5360    
   9  Prefactor     .10000E-03    1.1850        .85159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.475        26.074        .12380E-03   -1.5061    
  11  Prefactor     13.559        13.213        .54389E-03   -1.4971    
  12  norm          46.010        21.052        .59110E-04   -1.4350    
  13  norm          5.3206        10.486        .17423E-03   -1.5247    
  14  Prefactor     12.034        4.8671        .87488E-04   -1.5014    
  15  Prefactor     46.958        70.980        .58520E-04   -1.4336    
  16  Prefactor     14.805        21.276        .10409E-03   -1.4938    
  17  norm          3.1909        3.8939        .71838E-03   -1.5351    
  18  Prefactor     .10000E-03    27.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7966        4.7500        .21726E-03   -1.5373    
  20  Prefactor     56.455        49.403        .53390E-04   -1.4204    
  21  norm          1.3343        1.0853        .68855E-04   -1.5477    
  22  Prefactor     .10000E-03    15.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          13.419        9.8295        .10934E-03   -1.4975    
  24  Prefactor     34.095        29.493        .68628E-04   -1.4539    
  25  Prefactor     37.773        43.375        .65210E-04   -1.4478    
  26  norm          4.3907        1.6919        .61526E-04   -1.5289    
  27  Prefactor     14.953        30.696        .10358E-03   -1.4934    
  28  Prefactor     .10000E-03    10.396        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .48777        .22232        .35822E-03   -1.1299    
  30  Prefactor     1.2839        .24495        .27067E-03   -.83788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02693e-09
Minuit parameter uncertainties:
  1  25.4385
  2  2.02625e-06
  3  1.66457e-05
  4  30.2409
  5  26.6699
  6  117.01
  7  1.70372e-06
  8  0.523126
  9  7.9241e-07
  10  26.1022
  11  13.216
  12  21.0551
  13  10.4893
  14  4.86724
  15  71.1077
  16  21.2872
  17  3.89418
  18  0.000239406
  19  4.7506
  20  49.439
  21  1.0853
  22  1.79282e-05
  23  9.83067
  24  29.5053
  25  43.4111
  26  1.69195
  27  30.7287
  28  2.93449e-05
  29  0.222728
  30  0.245171
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.203e+01  4.867e+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.284e+00  2.452e-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.878e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.74
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.71e-07 +/- 6.92e-08
Energy Flux (Fixed Index): 5.84e-05 +/- 2.36e-05

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) = 6497.22997974
delta logL = 0.76060334288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6497.13966044
delta logL = 0.850922643965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.178       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9893       1.0000          .0000       10.000    
     3 'Normalizat'    .53096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2530       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=   6497.140     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      213 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.178        7.2571        .26593E-02   -.63107E-02
   2  Index         1.9893        .38392        .12411        .23642E-04
   3  Normalizat    .53100        .18129        .77924E-01    .42013E-04
   4  Prefactor     1.2529        .21100        .61918E-01   -.75233E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.178
  Index      = 1.98928
  Normalizat = 0.531005
  Prefactor  = 1.25294
 **********
 **   18 **HESSE 
 **********

 FCN=   6497.140     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.178        4.9654        .10248E-03   -1.4955    
   2  Index         1.9893        .28464        .50190E-02   -.64618    
   3  Normalizat    .53100        .20655        .34511E-03   -1.1100    
   4  Prefactor     1.2529        .24248        .27382E-03   -.84717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04114e-09
Minuit parameter uncertainties:
  1  4.96552
  2  0.284882
  3  0.206851
  4  0.242702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805052': 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) = 6497.13966036
delta logL = 0.850922726004

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.418e+01  4.966e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.989e+00  2.849e-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.253e+00  2.427e-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:  5.310e-01  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.97
Ra Dec: 171.964 36.314
Photon Index (Free Index): 1.99 +/- 0.28
Photon Flux (Free Index): 1.19e-07 +/- 5.77e-08
Energy Flux (Free Index): 8.48e-05 +/- 4.36e-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/805052/cmap_HighResolution_283910401_284169601_4FGL_J1127.8+3618_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.71e-07', energy_flux2='8.48e-05', photon_flux_error='6.92e-08', dlogl='8.51e-01', energy_flux='5.84e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-03 21:57:35.965478', photon_index_error2='0.28', photon_index2='1.99', ts='25.74', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', energy_flux_error2='4.36e-05', EG='0.49', time_epoch_completed='1630731455.97', return_code='0', job_id='805052', GAL2='1.25', EG2='0.53', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='5.77e-08', ts2='27.97', photon_index='2.37' WHERE bin_id='172' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:57:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 805052: <4FGL_J1127.8+3618_daily_bin172> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin172> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 21:41:28 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:41:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 21:41:48 2021
Terminated at Fri Sep  3 21:57:36 2021
Results reported at Fri Sep  3 21:57:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin172 171.964 36.314 283910401 284169601 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 :                                   831.31 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             303.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            968 sec.

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

