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


Performing analysis on: 4FGL_J1127.4+5648_daily_bin38
RA = 171.865, Dec = 56.8032
tmin = 249177601, tmax = 249436801
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='794501', job_status='RUN', time_executed='2021-09-03 21:09:45.494290', time_epoch_executed='1630728585.49' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794501

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794501/ft1_4FGL_J1127.4+5648_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794501/ft2_4FGL_J1127.4+5648_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794501/ft1_4FGL_J1127.4+5648_daily_bin38.fits outfile=/scratch/kocevski/794501/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin38.fits ra=171.865 dec=56.8032 rad=12.0 tmin=249177601.0 tmax=249436801.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.54
user 1.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794501/ft1_filtered_4FGL_J1127.4+5648_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/794501/ft2_4FGL_J1127.4+5648_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/794501/ltcube_249177601_249436801_4FGL_J1127.4+5648_daily_bin38.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/794501/ft2_4FGL_J1127.4+5648_daily_bin38.fits
.....................!
real 18.40
user 18.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794501/ft1_filtered_4FGL_J1127.4+5648_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/794501/ft2_4FGL_J1127.4+5648_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/794501/ltcube_249177601_249436801_4FGL_J1127.4+5648_daily_bin38.fits outfile=/scratch/kocevski/794501/expmap_249177601_249436801_4FGL_J1127.4+5648_daily_bin38.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/794501/ltcube_249177601_249436801_4FGL_J1127.4+5648_daily_bin38.fits
.....................!
real 192.08
user 187.50
sys 4.10

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/794501/ft1_filtered_4FGL_J1127.4+5648_daily_bin38.fits scfile=/scratch/kocevski/794501/ft2_4FGL_J1127.4+5648_daily_bin38.fits outfile=/scratch/kocevski/794501/cmap_249177601_249436801_4FGL_J1127.4+5648_daily_bin38.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794501/ft1_filtered_4FGL_J1127.4+5648_daily_bin38.fits scfile=/scratch/kocevski/794501/ft2_4FGL_J1127.4+5648_daily_bin38.fits outfile=/scratch/kocevski/794501/cmap_HighResolution_249177601_249436801_4FGL_J1127.4+5648_daily_bin38.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.59
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.035       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.801       1.0000         .10000E-03   10000.    
     4 'norm      '    .34745       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.757       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10588E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.0923       1.0000         .10000E-03   10000.    
    10 'Prefactor '    73.374       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10135E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.9558       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35556E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.939       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    44.917       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.6422       1.0000         .10000E-03   10000.    
    26 'norm      '    17.653       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.7929       1.0000         .10000E-03   10000.    
    28 'norm      '    3.2332       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4753       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .15199       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=   4376.046     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     3305 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.017        5.5834       -.51664E-05    .52673E-02
   2  norm          .10000E-03    5.3906        .10127E-05** at limit **
   3  Prefactor     48.950        34.621        .26451E-04    .53638E-02
   4  norm          .32772        12.474       -.30159E-04    .33033E-03
   5  norm          .10000E-03    2.5269       -.13004E-06** at limit **
   6  Prefactor     .10111E-03    35.689        .28648E-04** at limit **
   7  Prefactor     41.743        3.7052       -.34968E-05    .18524E-02
   8  Prefactor     .10068E-03    30.128        .21939E-04** at limit **
   9  norm          4.0921        2.4998        .43031E-06    .61649E-03
  10  Prefactor     73.364        2.8324       -.18100E-05    .60047E-03
  11  Prefactor     .10163E-03    20.903       -.10047E-04** at limit **
  12  Prefactor     .10034E-03    21.882        .48823E-04** at limit **
  13  norm          .10001E-03    17.601        .14185E-04** at limit **
  14  Prefactor     .10000E-03    2.2426       -.99872E-06** at limit **
  15  Prefactor     .10016E-03    19.662       -.49227E-04** at limit **
  16  Prefactor     .10129E-03    23.848       -.40597E-04** at limit **
  17  norm          .10000E-03    5.0247        .14692E-06** at limit **
  18  Prefactor     .10000E-03    1.8519        .36632E-06** at limit **
  19  norm          5.9570        5.7648        .99461E-05    .61017E-03
  20  Prefactor     .10000E-03    1.1763        .44015E-05** at limit **
  21  Prefactor     .10000E-03    4.8722        .21549E-05** at limit **
  22  Prefactor     24.926        2.5313       -.11320E-05   -.26746E-02
  23  norm          .10000E-03    .71652        .79842E-06** at limit **
  24  Prefactor     44.934        4.5335        .39256E-05   -.81683E-03
  25  Prefactor     9.5688        19.385       -.39067E-04    .43827E-02
  26  norm          17.652        1.0303        .20073E-06    .37636E-04
  27  Prefactor     8.7938        1.1268       -.69231E-06   -.59854E-03
  28  norm          3.2334        3.0113        .34216E-06   -.86680E-04
  29  Normalizat    1.4752        .21437       -.57852E-05   -.12265E-03
  30  Prefactor     .15201        .24142        .65520E-05   -.11648E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.0167
  norm       = 0.0001
  Prefactor  = 48.9496
  norm       = 0.327716
  norm       = 0.0001
  Prefactor  = 0.000101111
  Prefactor  = 41.7432
  Prefactor  = 0.000100682
  norm       = 4.09206
  Prefactor  = 73.3637
  Prefactor  = 0.000101634
  Prefactor  = 0.000100342
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.000100161
  Prefactor  = 0.000101286
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.95695
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 24.9261
  norm       = 0.0001
  Prefactor  = 44.9343
  Prefactor  = 9.5688
  norm       = 17.6524
  Prefactor  = 8.79383
  norm       = 3.23339
  Normalizat = 1.4752
  Prefactor  = 0.15201
 **********
 **   18 **HESSE 
 **********

 FCN=   4376.046     FROM HESSE     STATUS=OK           658 CALLS     3963 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.017        52.639        .13769E-02   -1.4250    
   2  norm          .10000E-03    5.3900        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.950        37.276        .14351E-02   -1.4308    
   4  norm          .32772        4.5509        .46456E-01   -1.5593    
   5  norm          .10000E-03    1.1206        .25007E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10111E-03    68.489        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.743        81.727        .15509E-02   -1.4415    
   8  Prefactor     .10068E-03    64.078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.0921        2.5127        .49822E-02   -1.5303    
  10  Prefactor     73.364        55.480        .11718E-02   -1.3993    
  11  Prefactor     .10163E-03    34.696        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10034E-03    23.988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    17.639        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10016E-03    20.388        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10129E-03    41.350        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.0245        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.9570        5.9851        .41135E-02   -1.5220    
  20  Prefactor     .10000E-03    89.079        .10658E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.8714        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.926        38.141        .20054E-02   -1.4709    
  23  norm          .10000E-03    .70913        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     44.934        36.817        .14955E-02   -1.4366    
  25  Prefactor     9.5688        112.80        .32263E-02   -1.5089    
  26  norm          17.652        10.425        .23831E-02   -1.4867    
  27  Prefactor     8.7938        8.6740        .33793E-02   -1.5115    
  28  norm          3.2334        3.2987        .56318E-02   -1.5348    
  29  Normalizat    1.4752        .37835        .30234E-01   -.78478    
  30  Prefactor     .15201        .42795        .14005       -1.3236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41202e-06
Minuit parameter uncertainties:
  1  52.6857
  2  3.99397e-05
  3  37.2935
  4  2.44231
  5  8.60412e-06
  6  0.0174657
  7  81.9475
  8  0.0132377
  9  2.51274
  10  55.5189
  11  0.0150655
  12  0.00573169
  13  0.000789645
  14  3.46253e-05
  15  0.0036295
  16  0.0145939
  17  2.07442e-05
  18  9.46573e-06
  19  5.98574
  20  0.0012485
  21  5.65987e-05
  22  38.1787
  23  1.1643e-05
  24  36.836
  25  65.8622
  26  10.4264
  27  8.6752
  28  3.29892
  29  0.379076
  30  0.437193
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  3.463e-05  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.520e-01  4.372e-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.475e+00  3.791e-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: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794501/likelihoodResults_249177601_249436801_4FGL_J1127.4+5648_daily_bin38.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) = 4376.0485046
delta logL = -0.00200752344517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4376.04649698
delta logL = 9.38744051382e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7070       1.0000          .0000       10.000    
     3 'Normalizat'    1.4752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .15202       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=   4376.046     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      252 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.192        .97152E-02** at limit **
   2  Index         2.2077        8.6731        .50000        .11159E-06
   3  Normalizat    1.4752        .16386E-01    .18660E-03   -.43441E-04
   4  Prefactor     .15201        .18826E-01    .61411E-03   -.97376E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20772
  Normalizat = 1.47519
  Prefactor  = 0.152014
 **********
 **   18 **HESSE 
 **********

 FCN=   4376.046     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    259.09        .10342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2077        8.0029        .50000       -.59252    
   3  Normalizat    1.4752        .52896E-01    .74638E-05   -.78478    
   4  Prefactor     .15201        .60754E-01    .24564E-04   -1.3236    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.51309e-12
Minuit parameter uncertainties:
  1  0.000162659
  2  1081.95
  3  0.0528975
  4  0.0607789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794501': 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): 102
logL (Free Index) = 4376.04649426
delta logL = 2.81155007542e-06

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  1.627e-04  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.208e+00  1.082e+03  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.520e-01  6.078e-02  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.475e+00  5.290e-02  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/794501/cmap_HighResolution_249177601_249436801_4FGL_J1127.4+5648_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-09-03 21:22:49.401843', job_id='794501', GAL2='0.15', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1630729369.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.15', dlogl='2.81e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='38' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:22:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 794501: <4FGL_J1127.4+5648_daily_bin38> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin38 171.865 56.8032 249177601 249436801 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 :                                   783.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            964 sec.

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

