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


Performing analysis on: 4FGL_J1127.4+5648_daily_bin75
RA = 171.865, Dec = 56.8032
tmin = 258768001, tmax = 259027201
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='794567', job_status='RUN', time_executed='2021-09-03 21:10:48.576752', time_epoch_executed='1630728648.58' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794567

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794567/ft1_4FGL_J1127.4+5648_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794567/ft2_4FGL_J1127.4+5648_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794567/ft1_4FGL_J1127.4+5648_daily_bin75.fits outfile=/scratch/kocevski/794567/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin75.fits ra=171.865 dec=56.8032 rad=12.0 tmin=258768001.0 tmax=259027201.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.13
user 0.95
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/794567/ft2_4FGL_J1127.4+5648_daily_bin75.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/794567/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/794567/ft1_filtered_4FGL_J1127.4+5648_daily_bin75.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/794567/ft1_filtered_4FGL_J1127.4+5648_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/794567/ft2_4FGL_J1127.4+5648_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/794567/ltcube_258768001_259027201_4FGL_J1127.4+5648_daily_bin75.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/794567/ft2_4FGL_J1127.4+5648_daily_bin75.fits
.....................!
real 12.15
user 11.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794567/ft1_filtered_4FGL_J1127.4+5648_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/794567/ft2_4FGL_J1127.4+5648_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/794567/ltcube_258768001_259027201_4FGL_J1127.4+5648_daily_bin75.fits outfile=/scratch/kocevski/794567/expmap_258768001_259027201_4FGL_J1127.4+5648_daily_bin75.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/794567/ltcube_258768001_259027201_4FGL_J1127.4+5648_daily_bin75.fits
.....................!
real 191.21
user 185.90
sys 3.93

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/794567/ft1_filtered_4FGL_J1127.4+5648_daily_bin75.fits scfile=/scratch/kocevski/794567/ft2_4FGL_J1127.4+5648_daily_bin75.fits outfile=/scratch/kocevski/794567/cmap_258768001_259027201_4FGL_J1127.4+5648_daily_bin75.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794567/ft1_filtered_4FGL_J1127.4+5648_daily_bin75.fits scfile=/scratch/kocevski/794567/ft2_4FGL_J1127.4+5648_daily_bin75.fits outfile=/scratch/kocevski/794567/cmap_HighResolution_258768001_259027201_4FGL_J1127.4+5648_daily_bin75.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.454       1.0000         .10000E-03   10000.    
     4 'norm      '    .18358E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3295       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.7644       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5407       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.777       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31715       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9986       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .35477E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9040       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10833E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.7431       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    5.4930       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3118       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .52722       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.

 FCN=   2878.329     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3301 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.29       -.20532E-05** at limit **
   2  norm          .10000E-03    11.469       -.17039E-06** at limit **
   3  Prefactor     34.426        28.990        .10064E-05    .42672E-04
   4  norm          .10000E-03    3.3530       -.89134E-06** at limit **
   5  norm          4.3296        3.1648        .99743E-07    .10797E-03
   6  Prefactor     .10003E-03    136.61        .87272E-05** at limit **
   7  Prefactor     .10000E-03    33.604        .11661E-05** at limit **
   8  Prefactor     .10001E-03    72.871       -.40639E-05** at limit **
   9  norm          9.7644        4.4763       -.85596E-07    .28103E-03
  10  Prefactor     .10000E-03    22.731       -.22474E-06** at limit **
  11  Prefactor     .10000E-03    23.795       -.62423E-06** at limit **
  12  Prefactor     .10000E-03    103.06       -.16872E-05** at limit **
  13  norm          .10000E-03    43.893        .21310E-05** at limit **
  14  Prefactor     2.5375        9.7766        .91140E-05    .30929E-03
  15  Prefactor     13.772        52.710       -.60554E-05   -.98247E-05
  16  Prefactor     .10000E-03    29.632       -.68964E-07** at limit **
  17  norm          .10000E-03    7.6008       -.14610E-07** at limit **
  18  Prefactor     .30940        5.7397       -.75324E-05    .58275E-03
  19  norm          .10000E-03    4.5012        .48306E-07** at limit **
  20  Prefactor     .10000E-03    25.218       -.13022E-05** at limit **
  21  Prefactor     1.9822        13.822        .12503E-04    .15336E-03
  22  Prefactor     .10000E-03    113.78        .82901E-06** at limit **
  23  norm          3.9039        2.9662       -.47876E-07   -.10933E-03
  24  Prefactor     .10000E-03    52.470        .30348E-06** at limit **
  25  Prefactor     .10000E-03    28.858       -.36074E-06** at limit **
  26  norm          1.7426        6.7283        .90657E-06    .17845E-04
  27  Prefactor     .10000E-03    19.728        .46541E-06** at limit **
  28  norm          5.4923        3.5387       -.18231E-06   -.65626E-03
  29  Normalizat    1.3117        .25953        .12801E-06   -.56819E-06
  30  Prefactor     .52750        .30180       -.43557E-05   -.71749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 34.4264
  norm       = 0.000100001
  norm       = 4.32959
  Prefactor  = 0.000100035
  Prefactor  = 0.000100001
  Prefactor  = 0.000100008
  norm       = 9.76443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100002
  Prefactor  = 2.53752
  Prefactor  = 13.7722
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.309397
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.98217
  Prefactor  = 0.0001
  norm       = 3.90393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74258
  Prefactor  = 0.000100001
  norm       = 5.49232
  Normalizat = 1.31167
  Prefactor  = 0.527498
 **********
 **   18 **HESSE 
 **********

 FCN=   2878.329     FROM HESSE     STATUS=OK           578 CALLS     3879 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    100.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.470        .17748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.426        28.933        .68270E-04   -1.4534    
   4  norm          .10000E-03    3.4004        .95479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3296        3.1633        .78839E-04   -1.5292    
   6  Prefactor     .10003E-03    137.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    73.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.7644        4.4774        .74412E-04   -1.5083    
  10  Prefactor     .10000E-03    22.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    103.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    43.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5375        10.056        .12810E-02   -1.5389    
  15  Prefactor     13.772        52.857        .10791E-03   -1.4966    
  16  Prefactor     .10000E-03    29.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.6021        .14447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30940        14.237        .18862E-02   -1.5597    
  19  norm          .10000E-03    4.5260        .11107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    25.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9822        15.113        .14649E-02   -1.5426    
  22  Prefactor     .10000E-03    117.85        .42635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9039        2.9703        .77103E-04   -1.5313    
  24  Prefactor     .10000E-03    53.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    28.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.7426        6.7082        .26454E-03   -1.5444    
  27  Prefactor     .10000E-03    20.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          5.4923        3.5360        .78369E-04   -1.5239    
  29  Normalizat    1.3117        .29628        .19824E-03   -.83219    
  30  Prefactor     .52750        .33862        .36172E-03   -1.1073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96033e-09
Minuit parameter uncertainties:
  1  0.00107695
  2  1.6505e-05
  3  28.9449
  4  9.79543e-05
  5  3.16347
  6  0.00437153
  7  0.000280006
  8  0.00151922
  9  4.47759
  10  5.80783e-05
  11  0.000135573
  12  0.000824933
  13  0.0005892
  14  10.0624
  15  53.0374
  16  6.1914e-05
  17  3.87399e-06
  18  4.19795
  19  1.25462e-05
  20  0.00030933
  21  10.9502
  22  0.000347838
  23  2.97038
  24  6.41911e-05
  25  9.08216e-05
  26  6.71108
  27  0.000340593
  28  3.53609
  29  0.296664
  30  0.339924
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  2.538e+00  1.006e+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:  5.275e-01  3.399e-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:  1.312e+00  2.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 171.865 56.803
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794567/likelihoodResults_258768001_259027201_4FGL_J1127.4+5648_daily_bin75.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): 0
logL (Free Index) = 2878.31926665
delta logL = 0.00976913697832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2878.3173538
delta logL = 0.0116819872783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1864       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4698       1.0000          .0000       10.000    
     3 'Normalizat'    1.3130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52547       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=   2878.317     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      250 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1863        11.001        .22701E-03   -.13797E-04
   2  Index         2.4708        1.5090        .12635E-01    .20800E-04
   3  Normalizat    1.3127        .27947        .19816E-03   -.46935E-04
   4  Prefactor     .52570        .33484        .36227E-03   -.20461E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.18633
  Index      = 2.4708
  Normalizat = 1.31274
  Prefactor  = 0.525696
 **********
 **   18 **HESSE 
 **********

 FCN=   2878.317     FROM HESSE     STATUS=OK            23 CALLS      273 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1863        10.876        .90802E-05   -1.5351    
   2  Index         2.4708        1.4931        .50541E-03   -.53036    
   3  Normalizat    1.3127        .27971        .39632E-04   -.83187    
   4  Prefactor     .52570        .33505        .14491E-04   -1.1081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54653e-11
Minuit parameter uncertainties:
  1  10.8829
  2  1.5247
  3  0.280038
  4  0.336317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794567': 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) = 2878.3173532
delta logL = 0.0116825888758

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  3.186e+00  1.088e+01  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.471e+00  1.525e+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:  5.257e-01  3.363e-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:  1.313e+00  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/794567/cmap_HighResolution_258768001_259027201_4FGL_J1127.4+5648_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-03 21:21:03.467156', job_id='794567', GAL2='0.53', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630729263.47', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='1.17e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='75' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:21:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 794567: <4FGL_J1127.4+5648_daily_bin75> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin75> 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) <bullet0278>, 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:21:04 2021
Results reported at Fri Sep  3 21:21:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin75 171.865 56.8032 258768001 259027201 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 :                                   612.33 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             268.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            856 sec.

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

