aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 80 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 = 74112
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1127.8+3618_monthly_bin169
RA = 171.964, Dec = 36.314
tmin = 675043201, tmax = 677635201
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='165954', job_status='RUN', time_executed='2022-06-23 02:09:01.786997', time_epoch_executed='1655975341.79' WHERE source_name='4FGL J1127.8+3618' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/165954

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/165954/ft1_4FGL_J1127.8+3618_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/165954/ft2_4FGL_J1127.8+3618_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/165954/ft1_4FGL_J1127.8+3618_monthly_bin169.fits outfile=/scratch/kocevski/165954/ft1_filteredMKT_4FGL_J1127.8+3618_monthly_bin169.fits ra=171.964 dec=36.314 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.62
user 26.78
sys 0.75

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/165954/ft2_4FGL_J1127.8+3618_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/165954/ft2_4FGL_J1127.8+3618_monthly_bin169.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/165954/ft1_filteredMKT_4FGL_J1127.8+3618_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/165954/ft1_filtered_4FGL_J1127.8+3618_monthly_bin169.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.85
user 0.68
sys 0.16

Number of photons that the gtmktime cut: 9169

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/165954/ft1_filtered_4FGL_J1127.8+3618_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/165954/ft2_4FGL_J1127.8+3618_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/165954/ltcube_675043201_677635201_4FGL_J1127.8+3618_monthly_bin169.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/165954/ft2_4FGL_J1127.8+3618_monthly_bin169.fits
.....................!
real 141.89
user 140.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/165954/ft1_filtered_4FGL_J1127.8+3618_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/165954/ft2_4FGL_J1127.8+3618_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/165954/ltcube_675043201_677635201_4FGL_J1127.8+3618_monthly_bin169.fits outfile=/scratch/kocevski/165954/expmap_675043201_677635201_4FGL_J1127.8+3618_monthly_bin169.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/165954/ltcube_675043201_677635201_4FGL_J1127.8+3618_monthly_bin169.fits
.....................!
real 192.84
user 186.77
sys 5.34

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

Setting source of interest to:
4FGL J1127.8+3618 @ 171.964 36.314

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/165954/ft1_filtered_4FGL_J1127.8+3618_monthly_bin169.fits scfile=/scratch/kocevski/165954/ft2_4FGL_J1127.8+3618_monthly_bin169.fits outfile=/scratch/kocevski/165954/cmap_675043201_677635201_4FGL_J1127.8+3618_monthly_bin169.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.964 yref=36.314 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.80
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/165954/ft1_filtered_4FGL_J1127.8+3618_monthly_bin169.fits scfile=/scratch/kocevski/165954/ft2_4FGL_J1127.8+3618_monthly_bin169.fits outfile=/scratch/kocevski/165954/cmap_HighResolution_675043201_677635201_4FGL_J1127.8+3618_monthly_bin169.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.964 yref=36.314 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.81
user 0.62
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/165954/ft1_filtered_4FGL_J1127.8+3618_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/165954/ft2_4FGL_J1127.8+3618_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/165954/Model_4FGL_J1127.8+3618_monthly_bin169.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/165954/ft1_filtered_4FGL_J1127.8+3618_monthly_bin169.fits.....................!
real 666.35
user 663.51
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/165954/ft1_filtered_4FGL_J1127.8+3618_monthly_bin169.fits', '/scratch/kocevski/165954/ft2_4FGL_J1127.8+3618_monthly_bin169.fits', expMap='/scratch/kocevski/165954/expmap_675043201_677635201_4FGL_J1127.8+3618_monthly_bin169.fits', expCube='/scratch/kocevski/165954/ltcube_675043201_677635201_4FGL_J1127.8+3618_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/165954/Model_4FGL_J1127.8+3618_monthly_bin169.xml', optimizer='MINUIT')

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

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/165954/ft1_filtered_4FGL_J1127.8+3618_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/165954/ft2_4FGL_J1127.8+3618_monthly_bin169.fits
Exposure map: /scratch/kocevski/165954/expmap_675043201_677635201_4FGL_J1127.8+3618_monthly_bin169.fits
Exposure cube: /scratch/kocevski/165954/ltcube_675043201_677635201_4FGL_J1127.8+3618_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/165954/Model_4FGL_J1127.8+3618_monthly_bin169.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) = 96081.2469272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.788       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4323       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24398E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1541       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3798       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0708       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.578       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4850       1.0000         .10000E-03   10000.    
    12 'norm      '    .16094E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    4.5519       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4654       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6509       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2590       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13221E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .44911       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.9191       1.0000         .10000E-03   10000.    
    21 'norm      '    1.9580       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12607E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.1731       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .30499E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .48342E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    26.656       1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.611       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.9148       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .94336       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0738       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   96081.17     FROM MIGRAD    STATUS=CONVERGED    851 CALLS     3563 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.778        6.4076         .0000        .12123E-03
   2  Prefactor     .10000E-03    .30396         .0000    ** at limit **
   3  Prefactor     .10000E-03    .26658         .0000    ** at limit **
   4  Prefactor     2.4285        3.5856         .0000        .17686E-01
   5  Prefactor     .10000E-03    1.5356         .0000    ** at limit **
   6  Prefactor     .10000E-03    5.4236         .0000    ** at limit **
   7  Prefactor     6.1539        2.7033         .0000        .11731E-02
   8  norm          1.3799        .92660E-01     .0000       -.31487E-02
   9  Prefactor     3.0709        .79712         .0000        .49124E-02
  10  Prefactor     11.556        3.8183         .0000        .10160E-01
  11  Prefactor     1.4827        1.7801         .0000        .36512E-02
  12  norm          .10000E-03    .54471         .0000    ** at limit **
  13  norm          4.5465        2.6425         .0000        .43895E-01
  14  Prefactor     4.4658        .76455         .0000        .21939E-02
  15  Prefactor     5.4362        7.1511         .0000       -.95301E-03
  16  Prefactor     2.6495        2.7608         .0000        .21735E-02
  17  norm          2.2587        .59561         .0000        .48523E-02
  18  Prefactor     .10000E-03    .46542         .0000    ** at limit **
  19  Prefactor     .44674        .60102         .0000        .69647E-02
  20  Prefactor     9.9251        8.5080         .0000        .33189E-02
  21  norm          1.9586        .29606         .0000        .50950E-02
  22  Prefactor     .10000E-03    .63770         .0000    ** at limit **
  23  norm          5.1774        1.7891         .0000       -.48037E-02
  24  Prefactor     .10000E-03    1.2892         .0000    ** at limit **
  25  Prefactor     .10000E-03    2.3310         .0000    ** at limit **
  26  norm          26.655        .78034         .0000       -.66376E-03
  27  Prefactor     11.655        7.6891         .0000        .29768E-03
  28  Prefactor     1.9140        1.2924         .0000        .44854E-02
  29  Normalizat    .94339        .48500E-01     .0000        .76225E-04
  30  Prefactor     1.0739        .55618E-01     .0000        .87184E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.42854
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.15388
  norm       = 1.37989
  Prefactor  = 3.07094
  Prefactor  = 11.556
  Prefactor  = 1.48273
  norm       = 0.0001
  norm       = 4.54653
  Prefactor  = 4.46578
  Prefactor  = 5.43615
  Prefactor  = 2.64951
  norm       = 2.25866
  Prefactor  = 0.0001
  Prefactor  = 0.446736
  Prefactor  = 9.92512
  norm       = 1.95862
  Prefactor  = 0.000100003
  norm       = 5.17741
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  norm       = 26.6554
  Prefactor  = 11.6547
  Prefactor  = 1.91398
  Normalizat = 0.94339
  Prefactor  = 1.07385
 **********
 **   18 **HESSE 
 **********

 FCN=   96081.17     FROM HESSE     STATUS=OK           628 CALLS     4191 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.778        6.0193        .11668E-03   -1.5021    
   2  Prefactor     .10000E-03    .31109        .16678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .76984        .29065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4285        3.5684        .13119E-02   -1.5396    
   5  Prefactor     .10000E-03    1.5489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1539        2.6939        .16183E-03   -1.5212    
   8  norm          1.3799        .92971E-01    .23027E-04   -1.5473    
   9  Prefactor     3.0709        .79321        .12973E-03   -1.5357    
  10  Prefactor     11.556        3.8129        .58867E-03   -1.5028    
  11  Prefactor     1.4827        1.7574        .35203E-03   -1.5464    
  12  norm          .10000E-03    .73957        .77047E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.5465        2.6381        .94342E-03   -1.5281    
  14  Prefactor     4.4658        .75909        .98032E-04   -1.5285    
  15  Prefactor     5.4362        7.1277        .17239E-03   -1.5242    
  16  Prefactor     2.6495        2.6930        .25038E-03   -1.5382    
  17  norm          2.2587        .58951        .11318E-03   -1.5407    
  18  Prefactor     .10000E-03    2.2121        .39867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .44674        1.2505        .25395E-02   -1.5574    
  20  Prefactor     9.9251        8.4958        .63616E-03   -1.5078    
  21  norm          1.9586        .29507        .58516E-04   -1.5428    
  22  Prefactor     .10000E-03    5.3433        .47727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.1774        1.7893        .88375E-03   -1.5253    
  24  Prefactor     .10000E-03    7.7558        .65253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.3596        .15279       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          26.655        .77400        .44658E-04   -1.4675    
  27  Prefactor     11.655        7.5732        .11757E-03   -1.5025    
  28  Prefactor     1.9140        1.2898        .28047E-03   -1.5431    
  29  Normalizat    .94339        .56516E-01    .26956E-03   -.94952    
  30  Prefactor     1.0739        .65500E-01    .30737E-03   -.90307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77244e-07
Minuit parameter uncertainties:
  1  6.01957
  2  4.71286e-07
  3  8.74319e-07
  4  3.56869
  5  1.35679e-06
  6  0.000220052
  7  2.69398
  8  0.0929714
  9  0.793209
  10  3.81302
  11  1.75748
  12  3.48755e-05
  13  2.63814
  14  0.759088
  15  7.1288
  16  2.69309
  17  0.589511
  18  1.40736e-06
  19  1.25053
  20  8.49679
  21  0.295073
  22  0.000243931
  23  1.78934
  24  0.000346024
  25  0.000112968
  26  0.773995
  27  7.57382
  28  1.28977
  29  0.0565195
  30  0.0655053
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  4.466e+00  7.591e-01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.074e+00  6.551e-02  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  9.434e-01  5.652e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 95.67
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 6.36e-08 +/- 1.08e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 3.68e-06

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) = 96081.161367
delta logL = 0.00662513243151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 96081.1465439
delta logL = 0.0214481898438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5554       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3413       1.0000          .0000       10.000    
     3 'Normalizat'    .94527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0725       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   96081.15     FROM MIGRAD    STATUS=FAILED        99 CALLS      265 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5554        .85710        .99713E-04    .99967E-04
   2  Index         2.3413        .14910        .71955E-02    .54771E-02
   3  Normalizat    .94527        .54860E-01    .26934E-03   -.13507E-05
   4  Prefactor     1.0725        .65622E-01    .30755E-03    .14195E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   96081.15     FROM SIMPLEX   STATUS=UNCHANGED     70 CALLS      335 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5554        .85710        .18851E-04   -1.5281    
   2  Index         2.3413        .14910        .17752E-03   -.56065    
   3  Normalizat    .94527        .54860E-01    .10642E-03   -.94887    
   4  Prefactor     1.0725        .65622E-01    .13441E-03   -.90352    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   96081.15     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      364 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5554        .83379        .19943E-04    .18242E-05
   2  Index         2.3413        .14494        .14391E-02   -.45250E-04
   3  Normalizat    .94527        .54872E-01    .10774E-04   -.33768E-05
   4  Prefactor     1.0725        .65658E-01    .12302E-04    .14786E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.55537
  Index      = 2.34131
  Normalizat = 0.945272
  Prefactor  = 1.07245
 **********
 **   18 **HESSE 
 **********

 FCN=   96081.15     FROM HESSE     STATUS=OK            23 CALLS      387 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5554        .82887        .39885E-05   -1.5281    
   2  Index         2.3413        .14405        .57564E-04   -.56065    
   3  Normalizat    .94527        .54820E-01    .21547E-05   -.94887    
   4  Prefactor     1.0725        .65584E-01    .24604E-05   -.90352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33581e-12
Minuit parameter uncertainties:
  1  0.828872
  2  0.144073
  3  0.0548232
  4  0.0655888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/165954': 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) = 96081.1465439
delta logL = 0.021448190193

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  4.555e+00  8.289e-01  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.341e+00  1.441e-01  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  1.072e+00  6.559e-02  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  9.453e-01  5.482e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 95.35
Ra Dec: 171.964 36.314
Photon Index (Free Index): 2.34 +/- 0.14
Photon Flux (Free Index): 6.20e-08 +/- 1.23e-08
Energy Flux (Free Index): 2.20e-05 +/- 3.99e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/165954/cmap_HighResolution_675043201_677635201_4FGL_J1127.8+3618_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.36e-08', energy_flux2='2.20e-05', photon_flux_error='1.08e-08', dlogl='2.14e-02', energy_flux='2.17e-05', photon_flux2='6.20e-08', job_status='DONE', time_completed='2022-06-23 04:25:30.515743', photon_index_error2='0.14', photon_index2='2.34', ts='95.67', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.99e-06', EG='0.94', time_epoch_completed='1655983530.52', return_code='0', job_id='165954', GAL2='1.07', EG2='0.95', return_code2='0', energy_flux_error='3.68e-06', photon_flux_error2='1.23e-08', ts2='95.35', photon_index='2.37' WHERE bin_id='169' AND source_name='4FGL J1127.8+3618' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 04:25:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 165954: <4FGL_J1127.8+3618_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1127.8+3618_monthly_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jun 23 01:35:28 2022
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:07:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:07:30 2022
Terminated at Thu Jun 23 04:25:31 2022
Results reported at Thu Jun 23 04:25:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_monthly_bin169 171.964 36.314 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.8+3618 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   8150.00 sec.
    Max Memory :                                 1147 MB
    Average Memory :                             441.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   8283 sec.
    Turnaround time :                            10203 sec.

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

