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


Performing analysis on: 4FGL_J1127.4+5648_daily_bin73
RA = 171.865, Dec = 56.8032
tmin = 258249601, tmax = 258508801
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='794564', job_status='RUN', time_executed='2021-09-03 21:09:13.055384', time_epoch_executed='1630728553.06' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794564

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794564/ft1_4FGL_J1127.4+5648_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794564/ft2_4FGL_J1127.4+5648_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794564/ft1_4FGL_J1127.4+5648_daily_bin73.fits outfile=/scratch/kocevski/794564/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin73.fits ra=171.865 dec=56.8032 rad=12.0 tmin=258249601.0 tmax=258508801.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.18
user 1.00
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/794564/ft2_4FGL_J1127.4+5648_daily_bin73.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/794564/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/794564/ft1_filtered_4FGL_J1127.4+5648_daily_bin73.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794564/ft1_filtered_4FGL_J1127.4+5648_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/794564/ft2_4FGL_J1127.4+5648_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/794564/ltcube_258249601_258508801_4FGL_J1127.4+5648_daily_bin73.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/794564/ft2_4FGL_J1127.4+5648_daily_bin73.fits
.....................!
real 11.76
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794564/ft1_filtered_4FGL_J1127.4+5648_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/794564/ft2_4FGL_J1127.4+5648_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/794564/ltcube_258249601_258508801_4FGL_J1127.4+5648_daily_bin73.fits outfile=/scratch/kocevski/794564/expmap_258249601_258508801_4FGL_J1127.4+5648_daily_bin73.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/794564/ltcube_258249601_258508801_4FGL_J1127.4+5648_daily_bin73.fits
.....................!
real 190.76
user 185.84
sys 4.30

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/794564/ft1_filtered_4FGL_J1127.4+5648_daily_bin73.fits scfile=/scratch/kocevski/794564/ft2_4FGL_J1127.4+5648_daily_bin73.fits outfile=/scratch/kocevski/794564/cmap_258249601_258508801_4FGL_J1127.4+5648_daily_bin73.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794564/ft1_filtered_4FGL_J1127.4+5648_daily_bin73.fits scfile=/scratch/kocevski/794564/ft2_4FGL_J1127.4+5648_daily_bin73.fits outfile=/scratch/kocevski/794564/cmap_HighResolution_258249601_258508801_4FGL_J1127.4+5648_daily_bin73.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/794564/ft1_filtered_4FGL_J1127.4+5648_daily_bin73.fits', '/scratch/kocevski/794564/ft2_4FGL_J1127.4+5648_daily_bin73.fits', expMap='/scratch/kocevski/794564/expmap_258249601_258508801_4FGL_J1127.4+5648_daily_bin73.fits', expCube='/scratch/kocevski/794564/ltcube_258249601_258508801_4FGL_J1127.4+5648_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/794564/Model_4FGL_J1127.4+5648_daily_bin73.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/794564/ft1_filtered_4FGL_J1127.4+5648_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/794564/ft2_4FGL_J1127.4+5648_daily_bin73.fits
Exposure map: /scratch/kocevski/794564/expmap_258249601_258508801_4FGL_J1127.4+5648_daily_bin73.fits
Exposure cube: /scratch/kocevski/794564/ltcube_258249601_258508801_4FGL_J1127.4+5648_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/794564/Model_4FGL_J1127.4+5648_daily_bin73.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) = 3223.04689502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6101       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.420       1.0000         .10000E-03   10000.    
     4 'norm      '    .19687E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.1023       1.0000         .10000E-03   10000.    
     6 'Prefactor '    318.50       1.0000         .10000E-03   10000.    
     7 'Prefactor '    74.292       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.0092       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12242E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15694E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.464       1.0000         .10000E-03   10000.    
    17 'norm      '    24.812       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5906       1.0000         .10000E-03   10000.    
    19 'norm      '    .14834E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.709       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18525E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    47.359       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    37.528       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    6.7295       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97839       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .71525       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3223.020     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     3255 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6111        1.0608        .40968E-06    .68402E-05
   2  norm          .10007E-03    4.7204       -.20600E-05** at limit **
   3  Prefactor     12.437        1.7469        .16759E-05   -.79049E-03
   4  norm          .10000E-03    6.5670       -.10034E-05** at limit **
   5  norm          3.1023        2.0390       -.40028E-06   -.21914E-03
   6  Prefactor     318.50        1.0425       -.21903E-06    .27201E-02
   7  Prefactor     74.282        1.5785       -.18432E-05    .53889E-02
   8  Prefactor     .12529E-03    31.940       -.58124E-05** at limit **
   9  norm          2.0092        1.9365        .49490E-06    .80496E-03
  10  Prefactor     .10053E-03    37.597       -.70666E-04** at limit **
  11  Prefactor     .10010E-03    5.1013        .13793E-04** at limit **
  12  Prefactor     .10218E-03    20.275       -.30074E-04** at limit **
  13  norm          .10253E-03    17.258       -.80322E-04** at limit **
  14  Prefactor     .10040E-03    39.878        .13192E-03** at limit **
  15  Prefactor     .10000E-03    11.476       -.12768E-04** at limit **
  16  Prefactor     48.463        1.0099       -.24156E-06    .40890E-03
  17  norm          24.815        1.0154       -.35711E-06    .12802E-05
  18  Prefactor     5.5902        4.5099       -.26228E-05   -.13236E-03
  19  norm          .10052E-03    3.2711        .19290E-05** at limit **
  20  Prefactor     .10044E-03    20.025        .62965E-04** at limit **
  21  Prefactor     19.725        1.3488       -.17703E-05   -.32176E-03
  22  Prefactor     .15548E-03    42.587       -.10769E-03** at limit **
  23  norm          .10000E-03    .78064        .21551E-06** at limit **
  24  Prefactor     47.367        1.2786        .13633E-05   -.20946E-02
  25  Prefactor     .10016E-03    36.546       -.61808E-04** at limit **
  26  norm          37.528        1.0037       -.15573E-06    .13262E-03
  27  Prefactor     .10000E-03    6.8122       -.35226E-05** at limit **
  28  norm          6.7301        4.3048        .12729E-05   -.18014E-04
  29  Normalizat    .97857        .24125        .16513E-05    .33650E-03
  30  Prefactor     .71500        .30188       -.15695E-05    .17676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61105
  norm       = 0.00010007
  Prefactor  = 12.4367
  norm       = 0.000100001
  norm       = 3.10234
  Prefactor  = 318.501
  Prefactor  = 74.2823
  Prefactor  = 0.000125288
  norm       = 2.00919
  Prefactor  = 0.000100526
  Prefactor  = 0.000100105
  Prefactor  = 0.000102182
  norm       = 0.000102533
  Prefactor  = 0.000100396
  Prefactor  = 0.0001
  Prefactor  = 48.4626
  norm       = 24.8146
  Prefactor  = 5.59017
  norm       = 0.000100519
  Prefactor  = 0.000100444
  Prefactor  = 19.7245
  Prefactor  = 0.000155484
  norm       = 0.0001
  Prefactor  = 47.3675
  Prefactor  = 0.000100158
  norm       = 37.5279
  Prefactor  = 0.0001
  norm       = 6.73012
  Normalizat = 0.978569
  Prefactor  = 0.715
 **********
 **   18 **HESSE 
 **********

 FCN=   3223.020     FROM HESSE     STATUS=OK           660 CALLS     3915 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6111        200.47        .83460E-02   -1.5454    
   2  norm          .10007E-03    9.5113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.437        14.560        .28416E-02   -1.5003    
   4  norm          .10000E-03    2.8355        .26257E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.1023        2.0435        .57558E-02   -1.5356    
   6  Prefactor     318.50        319.81        .56947E-03   -1.2119    
   7  Prefactor     74.282        137.86        .11646E-02   -1.3982    
   8  Prefactor     .12529E-03    114.45        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.0092        1.9253        .73020E-02   -1.5424    
  10  Prefactor     .10053E-03    145.42        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10010E-03    9.4361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10218E-03    36.113        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10253E-03    25.857        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10040E-03    10.221        .57661E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.496        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     48.463        36.940        .14400E-02   -1.4315    
  17  norm          24.815        21.686        .20105E-02   -1.4711    
  18  Prefactor     5.5902        4.5382        .42477E-02   -1.5235    
  19  norm          .10052E-03    7.3896        .78652E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10044E-03    21.622        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.725        16.923        .22555E-02   -1.4819    
  22  Prefactor     .15548E-03    174.22        .90712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .77860        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     47.367        45.095        .14566E-02   -1.4330    
  25  Prefactor     .10016E-03    140.23        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          37.528        14.546        .16356E-02   -1.4482    
  27  Prefactor     .10000E-03    6.7853        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          6.7301        4.3123        .38669E-02   -1.5189    
  29  Normalizat    .97857        .21969        .45896E-01   -.93752    
  30  Prefactor     .71500        .26064        .70234E-01   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76611e-06
Minuit parameter uncertainties:
  1  36.0655
  2  0.00162919
  3  14.5638
  4  0.000105669
  5  2.04353
  6  321.609
  7  138.458
  8  0.1078
  9  1.92533
  10  0.0175307
  11  0.00198799
  12  0.0177655
  13  0.0161938
  14  0.00402592
  15  0.000142752
  16  36.9577
  17  21.693
  18  4.53845
  19  0.00391565
  20  0.00619623
  21  16.9275
  22  0.197211
  23  1.51523e-05
  24  45.1276
  25  0.00944634
  26  14.5471
  27  1.0309e-05
  28  4.3125
  29  0.219889
  30  0.261084
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.004e-04  4.026e-03  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:  7.150e-01  2.611e-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:  9.786e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.865 56.803
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794564/likelihoodResults_258249601_258508801_4FGL_J1127.4+5648_daily_bin73.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) = 3223.02038384
delta logL = -8.82600675141e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3223.02026247
delta logL = 3.31109126819e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30346E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8663       1.0000          .0000       10.000    
     3 'Normalizat'    .97855       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71508       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3222.671     FROM MIGRAD    STATUS=FAILED       161 CALLS      336 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64558        49.213        .19816E-03   -.12191E-03
   2  Index         4.8924        6.5067        .78787E-02    .23117E-03
   3  Normalizat    .89905        .23126        .22395E-03    .18148E-04
   4  Prefactor     .77903        .28040        .29910E-03    .41051E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3222.671     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      424 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64558        49.213        .14809E-03   -.12191E-03
   2  Index         4.8924        6.5067        .29010E-02    .23117E-03
   3  Normalizat    .89905        .23126        .15679E-03    .18148E-04
   4  Prefactor     .77903        .28040        .89520E-04    .41051E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3222.671     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      455 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64558        2.5311        .79264E-05   -.15060E-03
   2  Index         4.8924        2.6038        .15757E-02   -.73591E-05
   3  Normalizat    .89905        .25868        .89580E-05    .16498E-04
   4  Prefactor     .77903        .31334        .11964E-04    .38485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.645581
  Index      = 4.89239
  Normalizat = 0.899052
  Prefactor  = 0.779027
 **********
 **   18 **HESSE 
 **********

 FCN=   3222.671     FROM HESSE     STATUS=OK            23 CALLS      478 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64558        2.2527        .31705E-06   -1.5547    
   2  Index         4.8924        2.3424        .63030E-04   -.21523E-01
   3  Normalizat    .89905        .25881        .17916E-05   -.96493    
   4  Prefactor     .77903        .31357        .23928E-05   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18771e-11
Minuit parameter uncertainties:
  1  2.253
  2  2.4379
  3  0.259173
  4  0.31429
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794564': 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) = 3222.67078993
delta logL = 0.349505647177

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  6.456e-01  2.253e+00  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  4.892e+00  2.438e+00  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:  7.790e-01  3.143e-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:  8.991e-01  2.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.865 56.803

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/794564/cmap_HighResolution_258249601_258508801_4FGL_J1127.4+5648_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-03 21:20:08.592804', job_id='794564', GAL2='0.78', fit_tolerance='1e-08', EG2='0.90', EG='0.98', time_epoch_completed='1630729208.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.50e-01', ts2='0.79', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='73' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:20:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 794564: <4FGL_J1127.4+5648_daily_bin73> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin73> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 21:06:48 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:07: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:07:22 2021
Terminated at Fri Sep  3 21:20:09 2021
Results reported at Fri Sep  3 21:20:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin73 171.865 56.8032 258249601 258508801 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 :                                   655.55 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             271.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            801 sec.

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

