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


Performing analysis on: 4FGL_J1127.4+5648_daily_bin1208
RA = 171.865, Dec = 56.8032
tmin = 552441601, tmax = 552700801
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='801895', job_status='RUN', time_executed='2021-09-03 21:35:25.520500', time_epoch_executed='1630730125.52' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='1208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/801895

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/801895/ft1_4FGL_J1127.4+5648_daily_bin1208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/801895/ft2_4FGL_J1127.4+5648_daily_bin1208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/801895/ft1_4FGL_J1127.4+5648_daily_bin1208.fits outfile=/scratch/kocevski/801895/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin1208.fits ra=171.865 dec=56.8032 rad=12.0 tmin=552441601.0 tmax=552700801.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.17
user 2.88
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/801895/ft2_4FGL_J1127.4+5648_daily_bin1208.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/801895/ft2_4FGL_J1127.4+5648_daily_bin1208.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/801895/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin1208.fits evtable="EVENTS" outfile="/scratch/kocevski/801895/ft1_filtered_4FGL_J1127.4+5648_daily_bin1208.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/801895/ft1_filtered_4FGL_J1127.4+5648_daily_bin1208.fits" evtable="EVENTS" scfile=/scratch/kocevski/801895/ft2_4FGL_J1127.4+5648_daily_bin1208.fits sctable="SC_DATA" outfile=/scratch/kocevski/801895/ltcube_552441601_552700801_4FGL_J1127.4+5648_daily_bin1208.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/801895/ft2_4FGL_J1127.4+5648_daily_bin1208.fits
.....................!
real 16.62
user 16.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/801895/ft1_filtered_4FGL_J1127.4+5648_daily_bin1208.fits evtable="EVENTS" scfile=/scratch/kocevski/801895/ft2_4FGL_J1127.4+5648_daily_bin1208.fits sctable="SC_DATA" expcube=/scratch/kocevski/801895/ltcube_552441601_552700801_4FGL_J1127.4+5648_daily_bin1208.fits outfile=/scratch/kocevski/801895/expmap_552441601_552700801_4FGL_J1127.4+5648_daily_bin1208.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/801895/ltcube_552441601_552700801_4FGL_J1127.4+5648_daily_bin1208.fits
.....................!
real 192.41
user 186.52
sys 4.27

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 233 point sources and 0 extended sources

Setting source of interest to:
4FGL J1127.4+5648 @ 171.865 56.8032

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/801895/ft1_filtered_4FGL_J1127.4+5648_daily_bin1208.fits scfile=/scratch/kocevski/801895/ft2_4FGL_J1127.4+5648_daily_bin1208.fits outfile=/scratch/kocevski/801895/cmap_552441601_552700801_4FGL_J1127.4+5648_daily_bin1208.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.865 yref=56.8032 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/801895/ft1_filtered_4FGL_J1127.4+5648_daily_bin1208.fits scfile=/scratch/kocevski/801895/ft2_4FGL_J1127.4+5648_daily_bin1208.fits outfile=/scratch/kocevski/801895/cmap_HighResolution_552441601_552700801_4FGL_J1127.4+5648_daily_bin1208.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.865 yref=56.8032 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.62
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/801895/ft1_filtered_4FGL_J1127.4+5648_daily_bin1208.fits evtable="EVENTS" scfile=/scratch/kocevski/801895/ft2_4FGL_J1127.4+5648_daily_bin1208.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/801895/Model_4FGL_J1127.4+5648_daily_bin1208.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/801895/ft1_filtered_4FGL_J1127.4+5648_daily_bin1208.fits.....................!
real 38.72
user 36.87
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/801895/ft1_filtered_4FGL_J1127.4+5648_daily_bin1208.fits', '/scratch/kocevski/801895/ft2_4FGL_J1127.4+5648_daily_bin1208.fits', expMap='/scratch/kocevski/801895/expmap_552441601_552700801_4FGL_J1127.4+5648_daily_bin1208.fits', expCube='/scratch/kocevski/801895/ltcube_552441601_552700801_4FGL_J1127.4+5648_daily_bin1208.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/801895/Model_4FGL_J1127.4+5648_daily_bin1208.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.4+5648'

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.906e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/801895/ft1_filtered_4FGL_J1127.4+5648_daily_bin1208.fits
Spacecraft file(s): /scratch/kocevski/801895/ft2_4FGL_J1127.4+5648_daily_bin1208.fits
Exposure map: /scratch/kocevski/801895/expmap_552441601_552700801_4FGL_J1127.4+5648_daily_bin1208.fits
Exposure cube: /scratch/kocevski/801895/ltcube_552441601_552700801_4FGL_J1127.4+5648_daily_bin1208.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/801895/Model_4FGL_J1127.4+5648_daily_bin1208.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3488.91693747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    113.14       1.0000         .10000E-03   10000.    
     3 'Prefactor '    836.20       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1678       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10940E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.698       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8532       1.0000         .10000E-03   10000.    
    10 'Prefactor '    121.51       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31860       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.382       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.752       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7992       1.0000         .10000E-03   10000.    
    19 'norm      '    2.1621       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.742       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3845       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .84835E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.5172       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.5199       1.0000         .10000E-03   10000.    
    25 'Prefactor '    108.75       1.0000         .10000E-03   10000.    
    26 'norm      '    13.761       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.8568       1.0000         .10000E-03   10000.    
    28 'norm      '    1.8667       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .67705       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4205       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+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=   3483.262     FROM MIGRAD    STATUS=CONVERGED   1373 CALLS     4194 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    119.66        .18142E-02** at limit **
   2  norm          113.12        195.89        .18910E-03    .74549E-05
   3  Prefactor     836.25        422.41        .72250E-04   -.13595E-04
   4  norm          .10000E-03    25.253        .18142E-02** at limit **
   5  norm          2.1678        4.7422        .18359E-03   -.68766E-04
   6  Prefactor     .10002E-03    550.07        .18142E-02** at limit **
   7  Prefactor     26.705        138.14        .77532E-04   -.80795E-05
   8  Prefactor     .10000E-03    472.53        .18142E-02** at limit **
   9  norm          1.8532        3.8234        .16216E-03   -.11876E-03
  10  Prefactor     121.50        143.35        .36511E-04   -.19399E-04
  11  Prefactor     .10000E-03    25.442        .18142E-02** at limit **
  12  Prefactor     .32815        136.05        .22875       -.46061E-04
  13  norm          .10000E-03    30.518        .18142E-02** at limit **
  14  Prefactor     23.384        14.537        .82837E-04   -.10787E-03
  15  Prefactor     27.747        44.782        .76048E-04   -.32066E-04
  16  Prefactor     .10000E-03    11.432        .18142E-02** at limit **
  17  norm          .10000E-03    5.6989        .13760E-02** at limit **
  18  Prefactor     1.7991        3.4923        .14050E-03   -.95763E-04
  19  norm          2.1650        7.8090        .25025E-03   -.22186E-03
  20  Prefactor     27.742        27.422        .76062E-04   -.30566E-04
  21  Prefactor     6.3855        10.506        .15885E-03   -.30041E-03
  22  Prefactor     .10010E-03    324.37        .51727E-02** at limit **
  23  norm          3.5172        2.4544        .73003E-04   -.19474E-03
  24  Prefactor     4.5205        14.611        .18937E-03   -.97797E-04
  25  Prefactor     108.78        86.522        .38569E-04   -.16575E-03
  26  norm          13.761        8.5306        .10797E-03   -.70124E-04
  27  Prefactor     1.8576        5.4820        .21814E-03   -.11507E-03
  28  norm          1.8665        1.7533        .71083E-04   -.15970E-03
  29  Normalizat    .67691        .29613        .29379E-03   -.27649E-03
  30  Prefactor     1.4207        .34507        .26933E-03   -.17909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 113.121
  Prefactor  = 836.246
  norm       = 0.0001
  norm       = 2.16775
  Prefactor  = 0.000100016
  Prefactor  = 26.7045
  Prefactor  = 0.0001
  norm       = 1.85315
  Prefactor  = 121.501
  Prefactor  = 0.0001
  Prefactor  = 0.328146
  norm       = 0.0001
  Prefactor  = 23.3837
  Prefactor  = 27.7466
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.79906
  norm       = 2.16498
  Prefactor  = 27.7423
  Prefactor  = 6.38549
  Prefactor  = 0.000100104
  norm       = 3.51717
  Prefactor  = 4.52055
  Prefactor  = 108.776
  norm       = 13.7613
  Prefactor  = 1.85761
  norm       = 1.86653
  Normalizat = 0.676907
  Prefactor  = 1.42073
 **********
 **   18 **HESSE 
 **********

 FCN=   3483.262     FROM HESSE     STATUS=OK           566 CALLS     4760 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    119.66        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          113.12        195.87        .75640E-05   -1.3577    
   3  Prefactor     836.25        422.41        .14450E-04   -.98406    
   4  norm          .10000E-03    25.253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1678        4.7421        .73437E-05   -1.5413    
   6  Prefactor     .10002E-03    550.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.705        138.11        .15506E-04   -1.4674    
   8  Prefactor     .10000E-03    472.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8532        3.8233        .64866E-05   -1.5436    
  10  Prefactor     121.50        143.33        .73021E-05   -1.3499    
  11  Prefactor     .10000E-03    25.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .32815        137.20        .22708       -1.5593    
  13  norm          .10000E-03    30.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.384        14.537        .33135E-05   -1.4740    
  15  Prefactor     27.747        44.767        .30419E-05   -1.4654    
  16  Prefactor     .10000E-03    11.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.6989        .27520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7991        3.4918        .56201E-05   -1.5440    
  19  norm          2.1650        7.7959        .10010E-04   -1.5414    
  20  Prefactor     27.742        27.416        .30425E-05   -1.4654    
  21  Prefactor     6.3855        10.490        .63539E-05   -1.5203    
  22  Prefactor     .10010E-03    330.79        .20691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.5172        2.4544        .29201E-05   -1.5333    
  24  Prefactor     4.5205        14.608        .75747E-05   -1.5283    
  25  Prefactor     108.78        86.413        .77137E-05   -1.3618    
  26  norm          13.761        8.5305        .43190E-05   -1.4966    
  27  Prefactor     1.8576        5.4801        .87255E-05   -1.5435    
  28  norm          1.8665        1.7530        .28433E-05   -1.5435    
  29  Normalizat    .67691        .29628        .11751E-04   -1.0481    
  30  Prefactor     1.4207        .34535        .53866E-04   -.79785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60991e-10
Minuit parameter uncertainties:
  1  3.99992e-05
  2  197.006
  3  424.067
  4  6.93986e-05
  5  4.74296
  6  0.00593204
  7  121.906
  8  0.000941341
  9  3.82384
  10  143.738
  11  0.000128194
  12  13.4489
  13  1.15641e-05
  14  14.5394
  15  44.8208
  16  2.79059e-05
  17  1.80751e-06
  18  3.49219
  19  7.79956
  20  27.4287
  21  10.4935
  22  0.0117837
  23  2.45446
  24  14.6193
  25  86.5133
  26  8.53123
  27  5.48156
  28  1.75307
  29  0.296978
  30  0.345917
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  2.338e+01  1.454e+01  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  1.421e+00  3.459e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  6.769e-01  2.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.76
Ra Dec: 171.865 56.803
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 1.23e-07 +/- 7.61e-08
Energy Flux (Fixed Index): 2.91e-05 +/- 1.81e-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) = 3482.91128165
delta logL = 0.35102600412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3482.83343275
delta logL = 0.428874905889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.310       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2348       1.0000          .0000       10.000    
     3 'Normalizat'    .69730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4009       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3482.833     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      214 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.310        26.670        .18194E-02   -.11430E-02
   2  Index         2.2348        .63692        .14852        .51939E-04
   3  Normalizat    .69732        .22678        .65504E-01    .13023E-04
   4  Prefactor     1.4008        .28955        .61244E-01    .33329E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.3104
  Index      = 2.23483
  Normalizat = 0.697324
  Prefactor  = 1.40083
 **********
 **   18 **HESSE 
 **********

 FCN=   3482.833     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.310        18.848        .72775E-04   -1.4606    
   2  Index         2.2348        .48315        .61103E-02   -.58600    
   3  Normalizat    .69732        .26464        .28982E-03   -1.0400    
   4  Prefactor     1.4008        .33765        .27084E-03   -.80356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63198e-09
Minuit parameter uncertainties:
  1  18.8513
  2  0.484238
  3  0.265128
  4  0.338184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/801895': 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) = 3482.83343274
delta logL = 0.428874912438

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  3.031e+01  1.885e+01  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.235e+00  4.842e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  1.401e+00  3.382e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  6.973e-01  2.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.61
Ra Dec: 171.865 56.803
Photon Index (Free Index): 2.23 +/- 0.48
Photon Flux (Free Index): 9.93e-08 +/- 6.89e-08
Energy Flux (Free Index): 4.19e-05 +/- 3.39e-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/801895/cmap_HighResolution_552441601_552700801_4FGL_J1127.4+5648_daily_bin1208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.23e-07', energy_flux2='4.19e-05', photon_flux_error='7.61e-08', dlogl='4.29e-01', energy_flux='2.91e-05', photon_flux2='9.93e-08', job_status='DONE', time_completed='2021-09-03 21:46:40.512080', photon_index_error2='0.48', photon_index2='2.23', ts='6.76', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', energy_flux_error2='3.39e-05', EG='0.68', time_epoch_completed='1630730800.51', return_code='0', job_id='801895', GAL2='1.40', EG2='0.70', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='6.89e-08', ts2='7.61', photon_index='2.72' WHERE bin_id='1208' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:46:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 801895: <4FGL_J1127.4+5648_daily_bin1208> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin1208> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 21:31:08 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:31:22 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:31:22 2021
Terminated at Fri Sep  3 21:46:41 2021
Results reported at Fri Sep  3 21:46:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin1208 171.865 56.8032 552441601 552700801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.4+5648 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   668.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            933 sec.

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

