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


Performing analysis on: 4FGL_J1127.4+5648_monthly_bin118
RA = 171.865, Dec = 56.8032
tmin = 542851201, tmax = 545443201
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='495190', job_status='RUN', time_executed='2021-10-22 18:07:20.160309', time_epoch_executed='1634951240.16' WHERE source_name='4FGL J1127.4+5648' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495190

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495190/ft1_4FGL_J1127.4+5648_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495190/ft2_4FGL_J1127.4+5648_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495190/ft1_4FGL_J1127.4+5648_monthly_bin118.fits outfile=/scratch/kocevski/495190/ft1_filteredMKT_4FGL_J1127.4+5648_monthly_bin118.fits ra=171.865 dec=56.8032 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.64
user 18.04
sys 0.54

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/495190/ft2_4FGL_J1127.4+5648_monthly_bin118.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/495190/ft1_filteredMKT_4FGL_J1127.4+5648_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/495190/ft1_filtered_4FGL_J1127.4+5648_monthly_bin118.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.73
user 0.42
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495190/ft1_filtered_4FGL_J1127.4+5648_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/495190/ft2_4FGL_J1127.4+5648_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/495190/ltcube_542851201_545443201_4FGL_J1127.4+5648_monthly_bin118.fits outfile=/scratch/kocevski/495190/expmap_542851201_545443201_4FGL_J1127.4+5648_monthly_bin118.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/495190/ltcube_542851201_545443201_4FGL_J1127.4+5648_monthly_bin118.fits
.....................!
real 193.12
user 186.56
sys 5.68

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/495190/ft1_filtered_4FGL_J1127.4+5648_monthly_bin118.fits scfile=/scratch/kocevski/495190/ft2_4FGL_J1127.4+5648_monthly_bin118.fits outfile=/scratch/kocevski/495190/cmap_542851201_545443201_4FGL_J1127.4+5648_monthly_bin118.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.61
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495190/ft1_filtered_4FGL_J1127.4+5648_monthly_bin118.fits scfile=/scratch/kocevski/495190/ft2_4FGL_J1127.4+5648_monthly_bin118.fits outfile=/scratch/kocevski/495190/cmap_HighResolution_542851201_545443201_4FGL_J1127.4+5648_monthly_bin118.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.43
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18241E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    112.55       1.0000         .10000E-03   10000.    
     4 'norm      '    .10551E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2425.7       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2172.2       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20192E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10787E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12104E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11218E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    466.08       1.0000         .10000E-03   10000.    
    17 'norm      '    624.47       1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.593       1.0000         .10000E-03   10000.    
    19 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12375E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10922E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .29319E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .84056E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70234E-07   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=   109.9805     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3808 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    365.78        .10772E-04** at limit **
   2  norm          .10000E-03    121.06        .12534E-05** at limit **
   3  Prefactor     112.70        133.51       -.26339E-05   -.85713E-04
   4  norm          .10000E-03    13.878        .32779E-05** at limit **
   5  norm          .10000E-03    11.214        .17559E-05** at limit **
   6  Prefactor     2427.0        2739.9       -.20785E-05   -.29566E-05
   7  Prefactor     2176.2        1561.3        .72132E-06    .42394E-05
   8  Prefactor     .10000E-03    947.20       -.54210E-06** at limit **
   9  norm          .10000E-03    15.984        .53369E-06** at limit **
  10  Prefactor     .10000E-03    400.83        .11636E-05** at limit **
  11  Prefactor     .10000E-03    160.67        .84356E-06** at limit **
  12  Prefactor     .10000E-03    520.77       -.45729E-08** at limit **
  13  norm          .10000E-03    464.74       -.14016E-06** at limit **
  14  Prefactor     .10000E-03    62.632        .34078E-06** at limit **
  15  Prefactor     .10000E-03    278.56        .67299E-06** at limit **
  16  Prefactor     465.97        555.52       -.14936E-05   -.90053E-05
  17  norm          624.92        621.78        .33189E-06    .20580E-05
  18  Prefactor     38.611        35.918       -.80933E-06   -.10796E-03
  19  norm          .10000E-03    76.829        .19430E-06** at limit **
  20  Prefactor     .10000E-03    140.96       -.23949E-06** at limit **
  21  Prefactor     .10000E-03    226.96        .39511E-06** at limit **
  22  Prefactor     .10000E-03    392.21        .84190E-07** at limit **
  23  norm          .10000E-03    33.934        .52244E-08** at limit **
  24  Prefactor     .10000E-03    1569.7       -.72124E-06** at limit **
  25  Prefactor     .10000E-03    1459.1       -.35397E-06** at limit **
  26  norm          .10000E-03    27.502       -.22890E-07** at limit **
  27  Prefactor     .10000E-03    113.61       -.12543E-06** at limit **
  28  norm          .10000E-03    52.971       -.61768E-07** at limit **
  29  Normalizat    .10000E-01    .22549        .32174E-04** at limit **
  30  Prefactor     .55511E-15    .19089        .15550E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 112.703
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2426.97
  Prefactor  = 2176.22
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 465.968
  norm       = 624.918
  Prefactor  = 38.6106
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 5.55112e-16
 **********
 **   18 **HESSE 
 **********

 FCN=   109.9805     FROM HESSE     STATUS=OK           556 CALLS     4364 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    365.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    121.03        .11317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     112.70        135.09        .18959E-03   -1.3581    
   4  norm          .10000E-03    13.879        .38227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.214        .34373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2427.0        2740.7        .46659E-04   -.54055    
   7  Prefactor     2176.2        1561.9        .48502E-04   -.60014    
   8  Prefactor     .10000E-03    947.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.981        .41048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    400.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    160.64        .13046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    520.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    464.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    62.629        .81320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    278.54        .17212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     465.97        555.83        .94878E-04   -1.1356    
  17  norm          624.92        621.90        .82656E-04   -1.0655    
  18  Prefactor     38.611        36.058        .59714E-04   -1.4464    
  19  norm          .10000E-03    76.826        .90087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    140.97        .12213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    226.96        .15523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    392.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    33.934        .59828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1569.7        .19853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1459.1        .20872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    27.502        .53854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    113.61        .10962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    52.971        .74773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .22574        .15402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .55511E-15    .19079        .14209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79063e-10
Minuit parameter uncertainties:
  1  0.000316967
  2  0.000113643
  3  135.462
  4  5.98964e-06
  5  2.49626e-06
  6  2973.43
  7  1601.81
  8  0.00381735
  9  3.43063e-07
  10  4.07419e-06
  11  9.5743e-05
  12  0.00075483
  13  0.000370296
  14  7.26195e-05
  15  0.000448462
  16  562.479
  17  628.958
  18  36.0787
  19  2.76992e-05
  20  3.7622e-06
  21  0.000410559
  22  5.90543e-05
  23  3.05792e-06
  24  0.00367655
  25  0.00158463
  26  2.12107e-09
  27  0.000134504
  28  4.51834e-05
  29  2.6409e-09
  30  1.76334e-08
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  7.262e-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:  5.551e-16  1.763e-08  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.000e-02  2.641e-09  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.96e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.55e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/495190/likelihoodResults_542851201_545443201_4FGL_J1127.4+5648_monthly_bin118.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) = 109.980581687
delta logL = -7.58963027607e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 109.980506896
delta logL = -1.10516974416e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6540       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37716E-07   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=   109.9805     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      286 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1620.0        .56767E-02** at limit **
   2  Index         2.0348        8.8936        .50000       -.95426E-08
   3  Normalizat    .10000E-01    .10472E-01    .15395E-02** at limit **
   4  Prefactor     .22204E-14    .88403E-02    .14205E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03476
  Normalizat = 0.01
  Prefactor  = 2.22045e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   109.9805     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      315 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8233.2        .90557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0348        6.9727        .50000       -.63484    
   3  Normalizat    .10000E-01    .65481E-01    .30790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22204E-14    .55295E-01    .28411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.70937e-10
Minuit parameter uncertainties:
  1  0.00211801
  2  6714.07
  3  3.72756e-08
  4  2.16728e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495190': 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) = 109.980505636
delta logL = 1.54280030529e-07

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  2.118e-03  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.035e+00  6.714e+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:  2.220e-15  2.167e-08  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.000e-02  3.728e-08  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/495190/cmap_HighResolution_542851201_545443201_4FGL_J1127.4+5648_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.55e-01', job_status='DONE', photon_flux_upper_limit='1.96e-06', time_completed='2021-10-22 18:15:55.398141', job_id='495190', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1634951755.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='1.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='118' AND source_name='4FGL J1127.4+5648' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 22 18:15:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 495190: <4FGL_J1127.4+5648_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1127.4+5648_monthly_bin118> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Oct 22 18:05:19 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 22 18:05:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 22 18:05:20 2021
Terminated at Fri Oct 22 18:15:56 2021
Results reported at Fri Oct 22 18:15:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_monthly_bin118 171.865 56.8032 542851201 545443201 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 :                                   483.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             239.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            637 sec.

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

