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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin175
RA = 171.964, Dec = 36.314
tmin = 284688001, tmax = 284947201
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='805056', job_status='RUN', time_executed='2021-09-03 21:44:32.513279', time_epoch_executed='1630730672.51' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='175'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805056

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805056/ft1_4FGL_J1127.8+3618_daily_bin175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805056/ft2_4FGL_J1127.8+3618_daily_bin175.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805056/ft1_4FGL_J1127.8+3618_daily_bin175.fits outfile=/scratch/kocevski/805056/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin175.fits ra=171.964 dec=36.314 rad=12.0 tmin=284688001.0 tmax=284947201.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.78
user 3.38
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805056/ft2_4FGL_J1127.8+3618_daily_bin175.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/805056/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin175.fits evtable="EVENTS" outfile="/scratch/kocevski/805056/ft1_filtered_4FGL_J1127.8+3618_daily_bin175.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/805056/ft1_filtered_4FGL_J1127.8+3618_daily_bin175.fits" evtable="EVENTS" scfile=/scratch/kocevski/805056/ft2_4FGL_J1127.8+3618_daily_bin175.fits sctable="SC_DATA" outfile=/scratch/kocevski/805056/ltcube_284688001_284947201_4FGL_J1127.8+3618_daily_bin175.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/805056/ft2_4FGL_J1127.8+3618_daily_bin175.fits
.....................!
real 16.33
user 15.81
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805056/ft1_filtered_4FGL_J1127.8+3618_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/805056/ft2_4FGL_J1127.8+3618_daily_bin175.fits sctable="SC_DATA" expcube=/scratch/kocevski/805056/ltcube_284688001_284947201_4FGL_J1127.8+3618_daily_bin175.fits outfile=/scratch/kocevski/805056/expmap_284688001_284947201_4FGL_J1127.8+3618_daily_bin175.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/805056/ltcube_284688001_284947201_4FGL_J1127.8+3618_daily_bin175.fits
.....................!
real 192.23
user 185.87
sys 5.40

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/805056/ft1_filtered_4FGL_J1127.8+3618_daily_bin175.fits scfile=/scratch/kocevski/805056/ft2_4FGL_J1127.8+3618_daily_bin175.fits outfile=/scratch/kocevski/805056/cmap_284688001_284947201_4FGL_J1127.8+3618_daily_bin175.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805056/ft1_filtered_4FGL_J1127.8+3618_daily_bin175.fits scfile=/scratch/kocevski/805056/ft2_4FGL_J1127.8+3618_daily_bin175.fits outfile=/scratch/kocevski/805056/cmap_HighResolution_284688001_284947201_4FGL_J1127.8+3618_daily_bin175.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5769       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6145       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1067       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10933E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.881       1.0000         .10000E-03   10000.    
    13 'norm      '    14.366       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3423       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.696       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .41840       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11424E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .78704       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0805       1.0000         .10000E-03   10000.    
    23 'norm      '    14.154       1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.351       1.0000         .10000E-03   10000.    
    25 'Prefactor '    117.07       1.0000         .10000E-03   10000.    
    26 'norm      '    .35537       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.2897       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .73016       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0240       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=   5968.043     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3999 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.716        .14665E-05** at limit **
   2  Prefactor     3.5768        4.9260       -.18669E-05   -.60657E-03
   3  Prefactor     1.6138        4.7293       -.53028E-06   -.38718E-03
   4  Prefactor     .10000E-03    30.810       -.22050E-05** at limit **
   5  Prefactor     .10000E-03    24.904       -.75334E-05** at limit **
   6  Prefactor     .10000E-03    33.327        .71021E-05** at limit **
   7  Prefactor     .10000E-03    5.6449        .77880E-08** at limit **
   8  norm          3.1067        .46621        .12729E-07    .33086E-03
   9  Prefactor     .10000E-03    1.6645        .12489E-06** at limit **
  10  Prefactor     .10000E-03    8.1498       -.12353E-05** at limit **
  11  Prefactor     .10000E-03    7.1121        .35730E-06** at limit **
  12  norm          10.882        15.312        .10586E-06    .12837E-04
  13  norm          14.372        14.994       -.27229E-06   -.44497E-04
  14  Prefactor     5.6692        2.5318       -.51417E-07   -.17362E-03
  15  Prefactor     .10000E-03    22.484        .28000E-05** at limit **
  16  Prefactor     3.3403        12.084        .34299E-05   -.68781E-03
  17  norm          .10000E-03    .92431       -.38131E-07** at limit **
  18  Prefactor     13.697        13.410       -.54170E-06   -.20436E-04
  19  Prefactor     .41801        3.5287        .46596E-06   -.55028E-03
  20  Prefactor     .10000E-03    76.466       -.26655E-05** at limit **
  21  norm          .78699        1.2571        .35919E-06    .33799E-03
  22  Prefactor     4.0794        12.534        .22745E-05   -.60997E-03
  23  norm          14.154        11.157        .26100E-06   -.16369E-04
  24  Prefactor     51.356        31.624        .10860E-06    .58696E-04
  25  Prefactor     117.06        79.475       -.28769E-05   -.10959E-03
  26  norm          .35513        .85656       -.21396E-07   -.73477E-03
  27  Prefactor     4.2977        79.897        .96452E-05    .50725E-04
  28  Prefactor     .10000E-03    7.8318        .76550E-06** at limit **
  29  Normalizat    .72993        .17326       -.38502E-06   -.41314E-04
  30  Prefactor     1.0243        .19207       -.80763E-07   -.25643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.57679
  Prefactor  = 1.61382
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 3.10674
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8821
  norm       = 14.3717
  Prefactor  = 5.66922
  Prefactor  = 0.000100001
  Prefactor  = 3.3403
  norm       = 0.0001
  Prefactor  = 13.6966
  Prefactor  = 0.418012
  Prefactor  = 0.000100001
  norm       = 0.786989
  Prefactor  = 4.07936
  norm       = 14.154
  Prefactor  = 51.3556
  Prefactor  = 117.06
  norm       = 0.355125
  Prefactor  = 4.29765
  Prefactor  = 0.0001
  Normalizat = 0.72993
  Prefactor  = 1.02431
 **********
 **   18 **HESSE 
 **********

 FCN=   5968.043     FROM HESSE     STATUS=OK           592 CALLS     4591 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5768        4.9791        .19586E-03   -1.5330    
   3  Prefactor     1.6138        4.7787        .27846E-03   -1.5454    
   4  Prefactor     .10000E-03    30.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6589        .17920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1067        .46668        .19558E-04   -1.5355    
   9  Prefactor     .10000E-03    9.7676        .18792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.1201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.882        15.298        .12146E-03   -1.5048    
  13  norm          14.372        14.948        .10567E-03   -1.4950    
  14  Prefactor     5.6692        2.5253        .78521E-04   -1.5232    
  15  Prefactor     .10000E-03    22.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3403        15.600        .11069E-02   -1.5342    
  17  norm          .10000E-03    .94516        .72463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.697        13.574        .10823E-03   -1.4968    
  19  Prefactor     .41801        3.6358        .28456E-03   -1.5579    
  20  Prefactor     .10000E-03    77.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .78699        1.1224        .87497E-03   -1.5531    
  22  Prefactor     4.0794        13.838        .99793E-03   -1.5304    
  23  norm          14.154        11.153        .10646E-03   -1.4955    
  24  Prefactor     51.356        31.410        .55966E-04   -1.4273    
  25  Prefactor     117.06        76.799        .37188E-04   -1.3540    
  26  norm          .35513        .84778        .10645E-03   -1.5589    
  27  Prefactor     4.2977        78.437        .19452E-03   -1.5293    
  28  Prefactor     .10000E-03    7.9450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .72993        .19844        .26565E-03   -1.0272    
  30  Prefactor     1.0243        .22346        .26973E-03   -.91923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30493e-09
Minuit parameter uncertainties:
  1  0.000195112
  2  4.97963
  3  4.77983
  4  0.000105608
  5  0.0006337
  6  0.000718957
  7  7.63379e-07
  8  0.466684
  9  0.000163606
  10  5.86676e-05
  11  1.6502e-05
  12  15.3031
  13  14.9521
  14  2.52538
  15  0.000228464
  16  14.4435
  17  1.24354e-06
  18  13.5772
  19  2.46552
  20  0.000459668
  21  1.12238
  22  13.8485
  23  11.1547
  24  31.4205
  25  76.8643
  26  0.84781
  27  36.7759
  28  1.59627e-06
  29  0.198639
  30  0.223662
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  5.669e+00  2.525e+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.024e+00  2.237e-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:  7.299e-01  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.06
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 8.07e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 2.75e-05 +/- 1.22e-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) = 5967.06154765
delta logL = 0.981595710751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5966.93271727
delta logL = 1.11042609699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4485       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8254       1.0000          .0000       10.000    
     3 'Normalizat'    .76240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99818       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=   5966.933     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4474        4.1251        .36738E-02   -.14789E-04
   2  Index         1.8254        .37669        .14559       -.10192E-04
   3  Normalizat    .76246        .16398        .43118E-01    .18084E-04
   4  Prefactor     .99804        .19399        .46244E-01    .93883E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.44737
  Index      = 1.82542
  Normalizat = 0.762457
  Prefactor  = 0.998037
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.933     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .23E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4474        3.3562        .92245E-04   -1.5162    
   2  Index         1.8254        .33211        .59199E-02   -.68790    
   3  Normalizat    .76246        .18591        .26064E-03   -1.0148    
   4  Prefactor     .99804        .22045        .27256E-03   -.92795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25513e-14
Minuit parameter uncertainties:
  1  3.35627
  2  0.332517
  3  0.186068
  4  0.22065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805056': 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) = 5966.93271681
delta logL = 1.11042655089

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  7.447e+00  3.356e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.825e+00  3.325e-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:  9.980e-01  2.206e-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:  7.625e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.34
Ra Dec: 171.964 36.314
Photon Index (Free Index): 1.83 +/- 0.33
Photon Flux (Free Index): 5.21e-08 +/- 2.96e-08
Energy Flux (Free Index): 5.78e-05 +/- 4.49e-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/805056/cmap_HighResolution_284688001_284947201_4FGL_J1127.8+3618_daily_bin175.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.07e-08', energy_flux2='5.78e-05', photon_flux_error='3.59e-08', dlogl='1.11e+00', energy_flux='2.75e-05', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-09-03 21:57:43.448943', photon_index_error2='0.33', photon_index2='1.83', ts='14.06', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.49e-05', EG='0.73', time_epoch_completed='1630731463.45', return_code='0', job_id='805056', GAL2='1.00', EG2='0.76', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='2.96e-08', ts2='16.34', photon_index='2.37' WHERE bin_id='175' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:57:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 805056: <4FGL_J1127.8+3618_daily_bin175> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin175> 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) <bullet0016>, 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:44 2021
Results reported at Fri Sep  3 21:57:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin175 171.964 36.314 284688001 284947201 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 :                                   785.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            976 sec.

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

