/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 150 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1127.8+3618_daily_bin110
RA = 171.964, Dec = 36.314
tmin = 267840001, tmax = 268099201
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='804962', job_status='RUN', time_executed='2021-09-03 21:44:22.945320', time_epoch_executed='1630730662.95' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804962

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804962/ft1_4FGL_J1127.8+3618_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804962/ft2_4FGL_J1127.8+3618_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804962/ft1_4FGL_J1127.8+3618_daily_bin110.fits outfile=/scratch/kocevski/804962/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin110.fits ra=171.964 dec=36.314 rad=12.0 tmin=267840001.0 tmax=268099201.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 1.50
user 1.29
sys 0.17

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804962/ft1_filtered_4FGL_J1127.8+3618_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/804962/ft2_4FGL_J1127.8+3618_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/804962/ltcube_267840001_268099201_4FGL_J1127.8+3618_daily_bin110.fits outfile=/scratch/kocevski/804962/expmap_267840001_268099201_4FGL_J1127.8+3618_daily_bin110.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/804962/ltcube_267840001_268099201_4FGL_J1127.8+3618_daily_bin110.fits
.....................!
real 193.81
user 187.73
sys 5.18

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/804962/ft1_filtered_4FGL_J1127.8+3618_daily_bin110.fits scfile=/scratch/kocevski/804962/ft2_4FGL_J1127.8+3618_daily_bin110.fits outfile=/scratch/kocevski/804962/cmap_267840001_268099201_4FGL_J1127.8+3618_daily_bin110.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804962/ft1_filtered_4FGL_J1127.8+3618_daily_bin110.fits scfile=/scratch/kocevski/804962/ft2_4FGL_J1127.8+3618_daily_bin110.fits outfile=/scratch/kocevski/804962/cmap_HighResolution_267840001_268099201_4FGL_J1127.8+3618_daily_bin110.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .81228       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    70.219       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3220       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .70834       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.407       1.0000         .10000E-03   10000.    
    13 'norm      '    .81905E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5203       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .51656       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.0989       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.671       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.6213       1.0000         .10000E-03   10000.    
    27 'Prefactor '    33.284       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .89111       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2448       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=   4919.859     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     3977 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.627       -.53417E-07** at limit **
   2  Prefactor     .10000E-03    3.7893       -.11776E-06** at limit **
   3  Prefactor     .82304        4.5643        .15913E-05   -.56825E-03
   4  Prefactor     .10000E-03    16.673        .14620E-07** at limit **
   5  Prefactor     .10000E-03    19.665        .14088E-06** at limit **
   6  Prefactor     70.088        84.228       -.54981E-06   -.10902E-03
   7  Prefactor     .10000E-03    14.451       -.94841E-07** at limit **
   8  norm          1.3220        .36219       -.43656E-09   -.72466E-03
   9  Prefactor     .71100        2.7028        .65163E-06   -.33808E-04
  10  Prefactor     .10000E-03    6.0973        .45759E-07** at limit **
  11  Prefactor     .10000E-03    7.6703        .27658E-07** at limit **
  12  norm          20.403        14.255        .35434E-07   -.58565E-04
  13  norm          .13411E-03    6.7186       -.20356E-05** at limit **
  14  Prefactor     .10000E-03    1.2080        .37345E-07** at limit **
  15  Prefactor     .10000E-03    16.292        .79506E-07** at limit **
  16  Prefactor     .10000E-03    9.8430        .14538E-06** at limit **
  17  norm          .10000E-03    .81455        .15991E-07** at limit **
  18  Prefactor     .10000E-03    6.6087        .12884E-06** at limit **
  19  Prefactor     7.5179        7.1867        .12060E-06   -.14445E-03
  20  Prefactor     .10000E-03    156.31        .15573E-05** at limit **
  21  norm          .51304        .99424        .17599E-05    .12809E-02
  22  Prefactor     .10000E-03    14.598        .22279E-06** at limit **
  23  norm          6.0990        9.2736       -.20840E-06   -.93548E-04
  24  Prefactor     10.660        31.407       -.83379E-08   -.34846E-04
  25  Prefactor     .10000E-03    34.379       -.15749E-06** at limit **
  26  norm          2.6209        1.3712        .43760E-07   -.40058E-04
  27  Prefactor     33.279        29.675        .32372E-07   -.28929E-04
  28  Prefactor     .10000E-03    3.8394        .10669E-06** at limit **
  29  Normalizat    .89119        .20351       -.31094E-06   -.29229E-03
  30  Prefactor     1.2451        .22804       -.16440E-05   -.17933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.823044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.088
  Prefactor  = 0.0001
  norm       = 1.32197
  Prefactor  = 0.711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.4033
  norm       = 0.000134107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.51794
  Prefactor  = 0.000100002
  norm       = 0.513042
  Prefactor  = 0.0001
  norm       = 6.09901
  Prefactor  = 10.6597
  Prefactor  = 0.0001
  norm       = 2.62087
  Prefactor  = 33.2791
  Prefactor  = 0.0001
  Normalizat = 0.89119
  Prefactor  = 1.24512
 **********
 **   18 **HESSE 
 **********

 FCN=   4919.859     FROM HESSE     STATUS=OK           590 CALLS     4567 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8663        .13329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .82304        14.286        .27151E-02   -1.5527    
   4  Prefactor     .10000E-03    16.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     70.088        84.538        .23952E-03   -1.4032    
   7  Prefactor     .10000E-03    14.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3220        .36254        .21328E-04   -1.5478    
   9  Prefactor     .71100        4.0545        .20470E-02   -1.5539    
  10  Prefactor     .10000E-03    6.1082        .16913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.6835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.403        14.259        .88664E-04   -1.4804    
  13  norm          .13411E-03    10.894        .59561E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2358        .15026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .82300        .61792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.6331        .17610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.5179        7.1729        .14624E-03   -1.5160    
  20  Prefactor     .10000E-03    157.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .51304        1.0046        .97441E-03   -1.5565    
  22  Prefactor     .10000E-03    14.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.0990        9.2602        .16257E-03   -1.5214    
  24  Prefactor     10.660        31.371        .12265E-03   -1.5055    
  25  Prefactor     .10000E-03    34.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.6209        1.3673        .57076E-04   -1.5384    
  27  Prefactor     33.279        29.650        .69457E-04   -1.4554    
  28  Prefactor     .10000E-03    3.8501        .13422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .89119        .23947        .25532E-03   -.96770    
  30  Prefactor     1.2451        .26847        .26707E-03   -.84954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03216e-08
Minuit parameter uncertainties:
  1  0.000407271
  2  5.70963e-07
  3  6.85957
  4  6.90695e-06
  5  2.06827e-05
  6  84.683
  7  1.30436e-05
  8  0.362539
  9  3.39584
  10  1.12442e-06
  11  2.40745e-06
  12  14.2611
  13  0.0385596
  14  1.49852e-06
  15  1.61728e-05
  16  1.22563e-05
  17  2.76319e-06
  18  9.12618e-06
  19  7.17373
  20  0.00109251
  21  1.00467
  22  1.66613e-05
  23  9.26235
  24  31.4199
  25  9.79424e-05
  26  1.36732
  27  29.6631
  28  3.03591e-06
  29  0.239753
  30  0.268767
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.499e-06  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.245e+00  2.688e-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:  8.912e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/804962/likelihoodResults_267840001_268099201_4FGL_J1127.8+3618_daily_bin110.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): 102
logL (Free Index) = 4919.8629022
delta logL = -0.00381373155142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4919.85908865
delta logL = -1.7625552573e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3697       1.0000          .0000       10.000    
     3 'Normalizat'    .89124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2451       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=   4919.859     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.600        .90712E-02** at limit **
   2  Index         2.3682        7.2023        .50000        .96251E-05
   3  Normalizat    .89119        .26123E-01    .44790E-01    .43440E-04
   4  Prefactor     1.2451        .31831E-01    .60391E-01    .41210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36822
  Normalizat = 0.891192
  Prefactor  = 1.24512
 **********
 **   18 **HESSE 
 **********

 FCN=   4919.859     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2524        .15029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3682        6.1840        .50000       -.55431    
   3  Normalizat    .89119        .21690        .25532E-03   -.96770    
   4  Prefactor     1.2451        .26433        .26708E-03   -.84954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33652e-10
Minuit parameter uncertainties:
  1  1.26308e-05
  2  4.28057
  3  0.217114
  4  0.264614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804962': 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) = 4919.85908846
delta logL = 7.1295289672e-09

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.263e-05  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.368e+00  4.281e+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.245e+00  2.646e-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:  8.912e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/804962/cmap_HighResolution_267840001_268099201_4FGL_J1127.8+3618_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-09-03 21:57:58.074402', job_id='804962', GAL2='1.25', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630731478.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='7.13e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='110' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:57:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 804962: <4FGL_J1127.8+3618_daily_bin110> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin110> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 21:41:21 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:41:27 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:27 2021
Terminated at Fri Sep  3 21:57:58 2021
Results reported at Fri Sep  3 21:57:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin110 171.964 36.314 267840001 268099201 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 :                                   814.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            997 sec.

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

